TOPIC: Extra files are created with plugin JL No Doubles

Extra files are created with plugin JL No Doubles 17 Aug 2017 10:08 #2000

I use very useful plugin JL No Doubles ( joomline.ru/rasshirenija/plugin/jlnodubles.html )
This plugin avoids page duplicates, for example:
site.com/13-test-name-with-error.h333tml automatically redirects to site.com/13-test-name.html
Everything is OK, but jotcahe creates two same copies: for test-name-with-error.h333tml and for 13-test-name.html
Potentially, this leads to the creation of the infinite cache size. How I can fix it?

Joomla version : 3.7
JotCache version : 6.0.2
site template: Custom
system plugins : joomline.ru/rasshirenija/plugin/jlnodubles.html
The administrator has disabled public write access.

Extra files are created with plugin JL No Doubles 17 Aug 2017 10:21 #2001

Try to set JotCache plugin parameter Global URL Exclusion as:
.h333tml
The administrator has disabled public write access.

Extra files are created with plugin JL No Doubles 17 Aug 2017 11:05 #2002

This is only one example, errors in the url can be any.
The administrator has disabled public write access.

Extra files are created with plugin JL No Doubles 17 Aug 2017 12:50 #2003

Then solving your specific requirements needs custom code. You can use special feature of JotCache 6 - JotcacheCustom.php where you can code any rules which you need. Rewrite this part of code in JotcacheCustom.php:
public function modifyDataFromCache(&$data) {
/*    $data = preg_replace_callback('#([<]span\s+class="\w*DateCreated"[>])([^<]*)([<]/span[>])#',
        array($this, 'timeRelative'), $data);
    $this->incrementHit($data); */

    $app = JFactory::getApplication();
    $suffix = $app->input->getWord('format', '');
// $suffix contains 'html' or 'h333tml' or any other format
    if($suffix!=='html'){
      $app->close();
      return;
    }
  }
The administrator has disabled public write access.

Extra files are created with plugin JL No Doubles 18 Aug 2017 05:56 #2004

IMHO, you again trying to solve a particular problem rather than general...
General problem: Jotcache shouldn't start caching while all plugins and redirects not finished
The administrator has disabled public write access.

Extra files are created with plugin JL No Doubles 18 Aug 2017 06:04 #2005

Your problem is so specific. Try to order in system plugins plugin JL No Doubles as the last one behind JotCache.
The administrator has disabled public write access.
Time to create page: 0.233 seconds
We have 47 guests and no members online
Copyright © 2015 JotComponents
We have 47 guests and no members online
Copyright © 2017 JotComponents