TOPIC: Pages expiring immediately

Pages expiring immediately 14 Dec 2017 23:39 #2097

I have a curious problem on a couple of my sites. Pages are being cached by jotcache but also expiring immediately (and showing up in the Jotcache list in italics). As I watch in the "cache/page" folder in the file manager of my cpanel web hosting account (refreshing the view repeatedly) the .php and .php_expire files are there on one refresh, but gone on the next one.

Jotcache plugins are first and last where required. The cache time is 60 minutes.

Other sites I have on the same server are working normally.

I'm not sure where to begin troubleshooting this.

Joomla version : 3.8
JotCache version : 6.1.3
site template: tested on Protostar
system plugins :
The administrator has disabled public write access.

Pages expiring immediately 15 Dec 2017 15:23 #2098

Check if you have Autoclean Mode active and if server time and application time is set properly. Details about caching can be analysed in JotCache debug log (Verbose setting).
The administrator has disabled public write access.

Pages expiring immediately 17 Dec 2017 03:05 #2099

Autoclean is not active (has a zero in the field) and the server and Joomla timezone are the same - both set to Vancouver.

The jotcache debug log does show UTC time in it, but that is also the case for another site on the same server and with the same settings - and Jotcache is working there.

Tim

#

#Date: 2017-12-17 01:27:37 UTC
#Software: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

#Fields: message

2017-12-17 01:27:37 current browser in common group [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36]
2017-12-17 01:27:38 READ CACHE start [www.smartdrivetest.com/]
2017-12-17 01:27:38 READ CACHE after exclude check
2017-12-17 01:27:38 READ CACHE no data
2017-12-17 01:27:40 WRITE CACHE start
2017-12-17 01:27:40 WRITE CACHE after save in storage [true]
2017-12-17 01:27:40 WRITE CACHE stored data [0821cfa984da7565d5a2fb4d6a1e142c]
2017-12-17 01:28:02 current browser excluded [Wget/1.12 (linux-gnu)]
2017-12-17 01:28:05 current browser excluded [Wget/1.12 (linux-gnu)]
2017-12-17 01:28:05 current browser excluded []
2017-12-17 01:28:05 immediate exit on [XMLHttpRequest www.smartdrivetest.com /index.php?option=com_ajax&format=json]
2017-12-17 01:28:06 READ CACHE start [www.smartdrivetest.com/index.php?option=...rl=cron&startqueue=0]
2017-12-17 01:28:06 READ CACHE start [www.smartdrivetest.com/index.php?lang=en...P8OsqpIx8OOwauf4zUpj]
2017-12-17 01:28:13 current browser in common group [Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_1 like Mac OS X) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0 Mobile/15C153 Safari/604.1]
2017-12-17 01:28:14 READ CACHE start [www.smartdrivetest.com/road-test/8-steps...son-new-driver-smart]
2017-12-17 01:28:14 READ CACHE after exclude check
2017-12-17 01:28:14 READ CACHE no data
2017-12-17 01:28:14 WRITE CACHE start
2017-12-17 01:28:14 WRITE CACHE after save in storage [true]
2017-12-17 01:28:14 WRITE CACHE stored data [a10998924bd4d3c91e96734f87f81f67]
2017-12-17 01:28:17 current browser in common group [Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)]
2017-12-17 01:28:18 READ CACHE start [www.smartdrivetest.com/air-brake/air-bra...rake-downhill-safely]
2017-12-17 01:28:18 READ CACHE after exclude check
2017-12-17 01:28:18 READ CACHE no data
2017-12-17 01:28:18 WRITE CACHE start
2017-12-17 01:28:18 WRITE CACHE after save in storage [true]
2017-12-17 01:28:18 WRITE CACHE stored data [c803a4df0bf44e6f19655c963d0cde62]

Joomla version : 3.8
JotCache version :
site template:
system plugins :

Joomla version : 3.8
JotCache version :
site template:
system plugins :
The administrator has disabled public write access.

Pages expiring immediately 17 Dec 2017 09:47 #2100

From your log is important this part:
2017-12-17 01:28:02 current browser excluded [Wget/1.12 (linux-gnu)] 2017-12-17 01:28:05 current browser excluded [Wget/1.12 (linux-gnu)] 2017-12-17 01:28:05 current browser excluded [] 2017-12-17 01:28:05 immediate exit on [XMLHttpRequest www.smartdrivetest.com /index.php?option=com_ajax&format=json]
2017-12-17 01:28:06 READ CACHE start [www.smartdrivetest.com/index.php?option=...rl=cron&startqueue=0]
2017-12-17 01:28:06 READ CACHE start [www.smartdrivetest.com/index.php?lang=en...P8OsqpIx8OOwauf4zUpj]
On the site you have request from automatic script [Wget/1.12 (linux-gnu)] and two ajax calls (one of them starting cron script). If any of these requests clears entire Joomla cache then JotCache can only show not more valid caches.
The administrator has disabled public write access.

Pages expiring immediately 18 Dec 2017 06:56 #2101

The lines in the log that you referred to are a cron job being run by cpanel to send out acymailing newsletter.

The cron was set to run once a minute, but the problem happens many times a minute.

I have turned off that cron and extension and nothing improved. Here is the log output from that:


application/x-httpd-php plg_jotcache.debug.log.php ( ASCII text )
#

#Date: 2017-12-18 05:51:26 UTC
#Software: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

#Fields: message
2017-12-18 05:51:26 immediate exit on [XMLHttpRequest www.smartdrivetest.com /index.php?option=com_ajax&format=json]
2017-12-18 05:51:28 current browser in common group [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36]
2017-12-18 05:51:28 READ CACHE start [www.smartdrivetest.com/]
2017-12-18 05:51:28 READ CACHE after exclude check
2017-12-18 05:51:28 READ CACHE no data
2017-12-18 05:51:30 immediate exit on [XMLHttpRequest www.smartdrivetest.com /index.php?option=com_ajax&format=json]
2017-12-18 05:51:30 WRITE CACHE start
2017-12-18 05:51:30 WRITE CACHE after save in storage [true]
2017-12-18 05:51:30 WRITE CACHE stored data [0821cfa984da7565d5a2fb4d6a1e142c]
2017-12-18 05:51:33 current browser in common group [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36]
2017-12-18 05:51:34 READ CACHE start [www.smartdrivetest.com/contact]
2017-12-18 05:51:34 READ CACHE after exclude check
2017-12-18 05:51:34 READ CACHE no data
2017-12-18 05:51:35 WRITE CACHE start
2017-12-18 05:51:35 WRITE CACHE after save in storage [true]
2017-12-18 05:51:35 WRITE CACHE stored data [4c6fc937be01390d06eebb31715b98cb]
2017-12-18 05:51:37 current browser in common group [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36]
2017-12-18 05:51:37 READ CACHE start [www.smartdrivetest.com/contact]
2017-12-18 05:51:37 READ CACHE after exclude check
2017-12-18 05:51:37 READ CACHE retrieved data [4c6fc937be01390d06eebb31715b98cb]
2017-12-18 05:51:43 current browser in common group [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36]
2017-12-18 05:51:43 READ CACHE start [www.smartdrivetest.com/humour/]
2017-12-18 05:51:43 READ CACHE after exclude check
2017-12-18 05:51:43 READ CACHE no data
2017-12-18 05:51:44 WRITE CACHE start
2017-12-18 05:51:44 WRITE CACHE after save in storage [true]
2017-12-18 05:51:44 WRITE CACHE stored data [9b8972a5d507a0f55a73beb09bff3ec0]
The administrator has disabled public write access.

Pages expiring immediately 18 Dec 2017 07:32 #2102

Further to my last reply, I have discovered the extension behind this problem.

I compared the installed extensions on one site without the problem and two sites with the problem and discovered the 2 problems sites had 2 extensions in common. By turning one at a time off I discovered that jotcache works fine when RSSEO from RsJoomla is turned off. I have no idea why this is. I'd be happy to send you a copy of the extension if you would like to look into the reason and then I could contact them.

Thanks for your help

Tim
The administrator has disabled public write access.

Pages expiring immediately 21 Dec 2017 11:07 #2106

The problem was located in RSSEO (v1.20.12) system plugin /plugins/system/rsseo/rsseo.php in function sitemap() code line 1193:
JFactory::getCache('page')->clean();
It is necessary to remove it or to comment in following way:
//JFactory::getCache('page')->clean();
This fix has no influence on RSSEO operation.

Explaination: For each visited web page is deleted entire page cache content on beginning of site map creation inside RSSEO. Usually RSSEO system plugin is ordered before JotCache system plugin therefore remains on the end of web request processing only last visited page in page cache (cached by JotCache into empty page cache).
The administrator has disabled public write access.

Pages expiring immediately 21 Dec 2017 12:01 #2110

Again, thanks for your help with this. I passed along the info to RsJoomla and here is their helpful reply:

Thank you for describing this scenario.

The code in question can be left commented out, this is only used to clear cache so that the `Sitemap Cron` feature will work properly. If you are using the `Sitemap Cron` feature and your pages are cached, the functionality is not triggered.

We will take this into consideration and provide an update for the functionality in one of our future versions of the component.

Regards!
The administrator has disabled public write access.
Time to create page: 0.320 seconds
We have 55 guests and no members online
Copyright © 2015 JotComponents
We have 55 guests and no members online
Copyright © 2018 JotComponents