The strange behavior of the cache - Joomla! 3.4.3

Discussion regarding Joomla! 3.x Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
bodim
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Aug 10, 2015 7:10 pm

The strange behavior of the cache - Joomla! 3.4.3

Post by bodim » Tue Aug 11, 2015 6:41 am

Hi, all!
It was found odd behavior cache. Approximately every 1-2 minutes, the cache is cleared completely and created the directory cache/page . Inside, a file index.html . Go to the website requests, the cache is filled again in a minute or two cleared ...
Joomla! - 3.4.3
PHP Version 5.4.41
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo
MySQL, Database Version 5.6.23-log
Plugin "System - Page Cache" - disable
Cache Settings: ON - conservative, 15 min.
As a result, cached data of the modules is constantly reset. I'm not sure, but I think that it started after an upgrade to version 3.4.3. Any idea where can I find the "enemy"?

jootify
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Thu Feb 13, 2014 3:42 pm

Re: The strange behavior of the cache - Joomla! 3.4.3

Post by jootify » Wed Aug 26, 2015 12:34 pm

Hi bodim,

Maybe if you can give us more details,for example ,the website name,were this is happening,the server configuration,any other relevant data,in order to find the cause for this.

You might have an misconfiguration or an plugin that it`s deleting the cache every 1-2 minutes,or even maybe an cron job on your cpanel that is doing that thing,anyhow is not normally.

To find out the cause of this,we need more details.

If the " Plugin "System - Page Cache" - disable " is disable,basically cache won`t work,maybe your using another component or something,that it does the things you say.

Or maybe you have something configured on your cpanel settings,hard to tell,without more details about this.

Basically if the system cache plugin is disabled,you should not have no cache,as the plugin is disabled,and normally it should be enable in order cache to work.

bodim
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Aug 10, 2015 7:10 pm

Re: The strange behavior of the cache - Joomla! 3.4.3

Post by bodim » Wed Aug 26, 2015 2:49 pm

Site - http://digitalmetro.us/ . I could be wrong, but I think that it started after upgrading to 3.4.3
cpanel I'll check. I did not do any job for crontab through the panel, I prefer self rule "/etc/crontab" or the "user-based".
If I turn on the "Plugin" System - Page Cache "", then begin a cached pages, if off the plugin - cache data modules, jcomment, menus, etc only.

Code: Select all

# ls -la
total 108
drwxr-x--- 19 digitalmetro digitalmetro 12288 Aug 26 17:34 ./
drwxr-x--- 22 digitalmetro nobody        4096 Aug  8 23:15 ../
drwxr-xr-x  2 digitalmetro digitalmetro 12288 Aug 26 17:34 com_content/
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 com_jcomments/
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 com_jcomments_objects_com_content/ 
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 com_languages/
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 com_modules/
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 com_plugins/
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 com_templates/
-rw-r--r--  1 digitalmetro digitalmetro    31 Jul  2 19:34 index.html
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 mod_articles_categories/
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 mod_articles_category/
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 mod_banners/
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 mod_custom/
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 mod_ja_acm/
drwxr-xr-x  2 digitalmetro digitalmetro 16384 Aug 26 17:34 mod_menu/
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 mod_search/
drwxr-xr-x  6 digitalmetro digitalmetro  4096 Aug 26 17:34 obgrabber/
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 page/
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 _system/
# ls -la page/
total 20
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 ./
drwxr-x--- 19 digitalmetro digitalmetro 12288 Aug 26 17:34 ../
-rw-r--r--  1 digitalmetro digitalmetro    30 Aug 26 17:34 index.html
# ls -la mod_articles_categories/
total 236
drwxr-xr-x  2 digitalmetro digitalmetro  4096 Aug 26 17:34 ./
drwxr-x--- 19 digitalmetro digitalmetro 12288 Aug 26 17:34 ../
-rw-r--r--  1 digitalmetro digitalmetro 15709 Aug 26 17:34 8397b5a7abb0f7757a9e7d4f98fdc494-cache-mod_articles_categories-11525feab2d5cf5ba530c51e7f227558.php
-rw-r--r--  1 digitalmetro digitalmetro 22730 Aug 26 17:34 8397b5a7abb0f7757a9e7d4f98fdc494-cache-mod_articles_categories-18ac6b929449e7143f6510d84e55211a.php
-rw-r--r--  1 digitalmetro digitalmetro 23025 Aug 26 17:34 8397b5a7abb0f7757a9e7d4f98fdc494-cache-mod_articles_categories-345bd9f0c36b9ddd6d10e185d0f0cad9.php
-rw-r--r--  1 digitalmetro digitalmetro 31596 Aug 26 17:34 8397b5a7abb0f7757a9e7d4f98fdc494-cache-mod_articles_categories-38227ab9d8d8fdc4964c9bec7e646485.php
-rw-r--r--  1 digitalmetro digitalmetro 28373 Aug 26 17:34 8397b5a7abb0f7757a9e7d4f98fdc494-cache-mod_articles_categories-4f6a8b6d7a9b020b44f433d8bc05ce76.php
-rw-r--r--  1 digitalmetro digitalmetro 44161 Aug 26 17:34 8397b5a7abb0f7757a9e7d4f98fdc494-cache-mod_articles_categories-6c743b2e083d4210df3277652dcb0223.php
-rw-r--r--  1 digitalmetro digitalmetro 14192 Aug 26 17:34 8397b5a7abb0f7757a9e7d4f98fdc494-cache-mod_articles_categories-a5131879ab9cec32f28680f1783a5c50.php
-rw-r--r--  1 digitalmetro digitalmetro 32694 Aug 26 17:34 8397b5a7abb0f7757a9e7d4f98fdc494-cache-mod_articles_categories-f2496e62a705eccdc3d78c04365ade54.php
-rw-r--r--  1 digitalmetro digitalmetro    30 Aug 26 17:34 index.html

Code: Select all

 
public $caching = '1';
public $cache_handler = 'file';
public $cachetime = '15';

Code: Select all

top - 17:47:20 up 92 days, 10:56,  5 users,  load average: 3.95, 4.73, 5.08
Tasks: 176 total,  14 running, 161 sleeping,   0 stopped,   1 zombie
Cpu(s):  4.6%us,  0.8%sy,  0.0%ni, 94.6%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3145728k total,  2901196k used,   244532k free,        0k buffers
Swap:        0k total,        0k used,        0k free,   709356k cached
Plugins work with the cache - not. I installed "jotcache", but then deleted it.

What are the configuration details that I write?

jootify
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Thu Feb 13, 2014 3:42 pm

Re: The strange behavior of the cache - Joomla! 3.4.3

Post by jootify » Wed Aug 26, 2015 5:55 pm

do you have akeeba backup ?

did you performed any backup before you upgraded to joomla 3.4.3 ?

Always do an update,before you upgrade anything,just to be on the safe side.

If I turn on the "Plugin" System - Page Cache "", then begin a cached pages, if off the plugin - cache data modules, jcomment, menus, etc only.

If it`s off,normally and you cleared out your cache from JOOMLA,you should not have no more cache,not even from modules,menus,etc,but i don`t know if you clear your cache.
If you don`t clear it out,after you disable,some cache can remain into the system.

public $caching = '1';
public $cache_handler = 'file';
public $cachetime = '15';

This means your cache is updated every 15 minutes.
This is the setup,that you did in global configuration,and mostly you have this in configuration.php file.

"top - 17:47:20 up 92 days, 10:56, 5 users, load average: 3.95, 4.73, 5.08
Tasks: 176 total, 14 running, 161 sleeping, 0 stopped, 1 zombie
Cpu(s): 4.6%us, 0.8%sy, 0.0%ni, 94.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 3145728k total, 2901196k used, 244532k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 709356k cached"

This is data from your server,from when is up,loading averages,cpu,memory total,used,and free,etc.

Are you hosted in in an shared host or vps or dedicated?


Put on this :

"public $caching = '0';
public $cache_handler = 'file';
public $cachetime = '15';

Disable the system plugin cache,clear your cache,and see if the problem persist or not.

bodim
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Aug 10, 2015 7:10 pm

Re: The strange behavior of the cache - Joomla! 3.4.3

Post by bodim » Wed Aug 26, 2015 6:16 pm

do you have akeeba backup ?
did you performed any backup before you upgraded to joomla 3.4.3 ?
Always do an update,before you upgrade anything,just to be on the safe side.
No, yes, :)
If you don`t clear it out,after you disable,some cache can remain into the system.
Clear, clear. Repeat from first post: "Approximately every 1-2 minutes, the cache is cleared completely and created the directory cache/page . Inside, a file index.html . Go to the website requests, the cache is filled again in a minute or two cleared ..."
This is data from your server,from when is up,loading averages,cpu,memory total,used,and free,etc.
Yes, I know it. There was a question about the configuration of my system - I answered.
Are you hosted in in an shared host or vps or dedicated?
vps. On test server - dedicated. It works the same way.
Put on this :

"public $caching = '0';
public $cache_handler = 'file';
public $cachetime = '15';

Disable the system plugin cache,clear your cache,and see if the problem persist or not.
But why??? I need caching modules, menu,... There is another problem, automatic cleaning cache every 1-2 minutes. It should not be.

jootify
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Thu Feb 13, 2014 3:42 pm

Re: The strange behavior of the cache - Joomla! 3.4.3

Post by jootify » Wed Aug 26, 2015 6:40 pm

Just for testing,that`s why,to see if with cache totally disabled and cleared,if the automatic clearing cache still performs.

Did you installed any 3rd party plugin like nonumber cache cleaner ?If you have that,maybe you setup it ,to clear cache every 1-2 minutes,you have something in there,that is doing this operation.
This kinds of plugins either can work automatically ,either they can be activated when an visitator visit your website and performs automaticaly cache clearing,either via cron jobs in cpanel.

If you have an backup and test server,you should test this,with your backup.

You can ask your hosting provider about this,the sysadmin should see into the system,why the cache is cleared every 2 minutes.

bodim
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Aug 10, 2015 7:10 pm

Re: The strange behavior of the cache - Joomla! 3.4.3

Post by bodim » Thu Aug 27, 2015 7:52 pm

Did you installed any 3rd party plugin like nonumber cache cleaner ?
No.
I totally disabled cache (system and page). Remove all files crom JROOT/cache - after 1-2 min appears dir "cache" and "index.html" inside.
Ok, I add "public $cache_path = /tmp/cache" in joomla configuration.php , after 1-2 min appears dir "cache" and "index.html" inside - /tmp/cache/page/index.html :)
cpanel really so smart?

jootify
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Thu Feb 13, 2014 3:42 pm

Re: The strange behavior of the cache - Joomla! 3.4.3

Post by jootify » Fri Aug 28, 2015 12:35 pm

So even with cache disable," Approximately every 1-2 minutes, the cache is cleared completely and created the directory cache/page . Inside, a file index.html . " this happens ?!?!

bodim
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Aug 10, 2015 7:10 pm

Re: The strange behavior of the cache - Joomla! 3.4.3

Post by bodim » Fri Aug 28, 2015 1:12 pm

So even with cache disable," Approximately every 1-2 minutes, the cache is cleared completely and created the directory cache/page . Inside, a file index.html . " this happens ?!?!
Yes! :)
I solved the problem. Thank you so much for taking the time with me!!! Your posts gave me the idea. Everything was very, very simple. I found in OS working apache process from 17 Jun !!!
/etc/init.d/httpd restart - not killing this process. Only after I kill -9 and restart apache - all work correct.
Thanks! Topic may be closed, problem solved.

bodim
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Aug 10, 2015 7:10 pm

Re: The strange behavior of the cache - Joomla! 3.4.3

Post by bodim » Fri Aug 28, 2015 5:12 pm

I'm glad too early. The problem returned. >:(
1. All cache disabled
2. Cache dir - /tmp/cache

I remove all files in /tmp/cache - 1-2 min - /tmp/cache/page/index.html exist.
I create dir /tmp/cache/123 - 1-2 min - /tmp/cache/123 removed, /tmp/cache/page/index.html exist.

jootify
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Thu Feb 13, 2014 3:42 pm

Re: The strange behavior of the cache - Joomla! 3.4.3

Post by jootify » Sun Sep 13, 2015 2:51 pm

you might have something that is setup badly on your side,i can`t figure it out exactly.

can you ask your host,to tell you the php processes running and if can tell you with the admin tools,why the cache is still creating ?

If it`s off,if all plugins disable,if no cache on modules and stuff,basically it should be no cache.
But maybe you have something setup in .htaccess that is creating that cache,take an look in there.Or maybe an plugin from an component that you have installed.
Or even maybe the template is creating the cache,see what settings you have into your template,something is creating it....that`s for sure...

bodim
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Aug 10, 2015 7:10 pm

Re: The strange behavior of the cache - Joomla! 3.4.3

Post by bodim » Sun Sep 13, 2015 3:15 pm

jootify, thanks! While suspected authorization modules for SLogin - http://joomline.net . The developers have confirmed the error. They promised to fix in the next version. Topic can be closed. Thank you!

jootify
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Thu Feb 13, 2014 3:42 pm

Re: The strange behavior of the cache - Joomla! 3.4.3

Post by jootify » Sun Sep 13, 2015 3:45 pm

i was sure something was causing this,either an component,module,or plugin.

i m glad you figure it out finally.

no problem anytime bodim!


Locked

Return to “Performance - Joomla! 3.x”