Cannot add version of main.css to wordpress on testing enviroment

To answer the question why you can’t add the theme’s version to your CSS file, it’s likely because the Version property of $theme is private so you cannot access it directly, but you can access it through the public get function. Try this instead: $theme = wp_get_theme(); define(‘THEME_VERSION’, $theme->get(‘Version’)); You also don’t need to add … Read more

Multiple WordPress sites eat up a lot of RAM

It’s hard to answer this given that each site is most likely different and each server is also configured differently. If these sites are individual WordPress installs then 1GB /30 sites is normal, an absolute bare minimum per site would be 32MB for apc.shm_size, this equals 960MB with no overhead. 32MB is in my opinion … Read more

WP 3.5 caching problem

Sorry for this but I found out in the end that my ISP was doing some kind of caching on their end. Had to phone them and explain the issue. When they started seeing it too, I kwen the problem was with them. Thanks for all the comments btw.

CSS changes not taking effect [closed]

A couple of thoughts for you. –Are you creating a new theme from scratch? If so, drive on. If you are modifying an existing theme, changing another’s theme style.css file can be trouble. If you are modifying an existing theme, stop what you are doing, and spend 30 (yup, 30!) minutes to learn how to … Read more

Levels of caching and impact on the WordPress web site

Adding custom variables(query strings) to static resources doesn’t affect caching at some of the levels you’ve listed above: WordPress plugin caching Webserver software caching PHP opcode caching MySQL caching WordPress query caching Several more etc. All of these don’t cache static resources(js, css and so on) but rather cache the output of application codes at … Read more