Hot answers tagged

25

There are several steps you can take to increase server side performance. Do note that some of these will not work with most shared hosts. For great performance you usually need more fine grained control. As with any optimizations, you should measure the effect it has on your site's performance. For basic optimizations are tools like PageSpeed and YSlow ...


13

One BIG thing you can do to improve response times for your site is to update your module settings. Custom modules (using mod_custom) have an option to enable / disable the preparing of content. This allows you to run content plugins on the data content within your custom module. It's powerful when used properly, but it does add additional rendering time to ...


8

So far Google-searches make me presume that joomla caches your component automatically if you add display(true,...) to your controller's display method as in following example. The example also includes some measurement code to check if it's working (JProfiler part). public function display($cachable = false, $urlparams = array()) { $profiler = new ...


8

I assume that you have run your site through Google Page speed, and you are indeed looking at reducing the page response time i.e. time taken by your markup to be sent to the browser. The most likely culprits for these are heavy queries. Turn on the debug and look at the bottom of the page to find out which are the most heavy queries and remove or reduce ...


7

This is usually caused by the cache mechanisms in Joomla. It has nothing to do with the Joomla 2.5. eol. Clear Cache and purge expired cache from the maintenance menu, and also it usually helps if you go to Extensions Manager -> update / manage and Clear/Refresh the cahce for the extensions there. Then go to the Joomla Update Component and see if it ...


6

The things I know of that can help (most of which have been listed) are these: Caching Compression (gzip your css and js files) Combining files (all your css gets combined into one file) Offloading images and files onto a CDN. I've used a combination of the built in Joomla cache (or even APC enabled on the server) and plugins like gzip or rocket theme's ...


5

Without knowing which plugin(s) you're concerned with, here's some code that would get, set and clear a cache for a given item. $output = ''; $cache = JFactory::getCache('com_something', ''); $cache->setCaching(true); $cache->setLifeTime(86400); // See All cached items echo "<pre>".print_r($cache->getAll(), true)."</pre>"; // Create ...


5

In addition to Shyam's answer... In Global Configuration -> Cache... Conservative caching is a cache generated for each view of a component / module Progressive caching is a cache generated for each view of a component / module on an individual per-user basis This is an extension-level cache of views. It must be implemented by the extension developer to ...


5

JResponse::allowCache(false); replacement is JFactory::getApplication()->allowCache(false); To set key => value cache items: // Get cache instance $cache = JFactory::getCache(); // Store in cache $cacheItemStored = $cache->store($value, $key, $group = null); // boolean // Get from cache $value = $cache->get($key, $group = null); As you can ...


5

Do you reach directly to the updated css file through your browser and you see the old css? Or you just don't see the changes taking effect on your site? Some suggestions for both scenarios: A. Do you reach directly to the updated css file through your browser and you see the old css? Make sure the server/location you are FTP uploading, is the ...


4

You will want to also look into reducing local assets and proper caching. One thing that you can do is use CDN plugins. Here are two I would recommend: 'corePHP' jomCDN - https://www.corephp.com/joomla-products/jomcdn NoNumbers CDN For Joomla! - http://www.nonumber.nl/extensions/cdnforjoomla Also if none of the above seem to resolve the issues you may ...


4

In addition to my other answer, there can be a few other reasons that can cause a delay to what you see on the front-end of a website against your changes in the backend. Your computer. Starting from your computer, it's possible that your browser has also cached a page and may show you the cached content. So, usually in such cases keep in mind to also clear ...


4

Go to the extension manager and select the update tab Click on purge cache Click on find updates Go to Control Panel. The joomla updater will now report an update available.


4

Sorry to bump this older question but the accepted response isn't totally correct. Most everything in JResponse is replaced by a similarly named method call in JApplicationWeb instances (of which the CMS web application classes are). See https://api.joomla.org/cms-3/classes/JResponse.html for more details. So JResponse::allowCache(false); is replaced by ...


4

Yes, there is a built-in cache busting technique. If you use it, your HTML will look like this: <script src="/media/path/foo/bar.js?32af2f62db6e60053132340acc9dfb3c" type="text/javascript"></script> How the cache busting technique works: This works by appending a different series of characters in the URL query section every time that the file ...


4

I have faced the very same problem many, many times. In the meantime I have learned that one can force browser to clear its cache only by versioning assets loading. So you need to find where your template loads its CSS files, and to add at the very end of loading command some type of versioning string, something like "?v=xxx". Once the browser caches ...


3

You also can use this code in your .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} ^www.your domain [nocase] RewriteRule ^(.*) http://your domain/$1 [last,redirect=301] RewriteEngine on <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/...


3

B9.png First of all you should check the administrator/cache and /cache folders exist. Obviously file cache can't work without those folders. If they don't exist just create them and that may solve the problem. If the problem is still not solved then perhaps the below has happened. This occurred to me when I transferred my site to a new location. When ...


3

Usually this due to the Cache Mechanisms. In this wikipedia article you will see that caching is an important computing feature that is used widely. http://en.wikipedia.org/wiki/Cache_(computing) When enabled in Joomla, it delivers to the users a stored view of the web page, same as it was previously displayed, so it won't have to ask the database and ...


3

As far as I know, Joomla itself does not send out update notifications by email. My guess is that you have a third-party extension for this. Akeeba Backup used to send out update notifications, but I think they stopped due to the amount of support tickets caused by this function. It should still be available, but you might have to enable it manually. There ...


3

Facebook (and most other portals) does need access to your site to harvest the data. There is no workaround and it's besides the common privacy issues a good thing as it prevents Facebook from flooding with spam content. What you might can do: Turn of offline-modus Block access to your site via htaccess Allow specific IPs to access your site (your IP, ...


3

I thought I would extend on Bakual's answer. What is the Refresh Manifest Cache? According to https://www.akeebabackup.com/support/admin-tools/15271-refresh-manifest-cache-failed.html it detects database errors and fixes them. It's for when the update reports errors. What's causing it? How can I fix it? Login to Joomla Admin. Go into Extension ...


3

The manifest cache is a field in the #__extensions table which holds the informations from the extension manifest file (the xml file describing the extension and what to install). You can refresh it as well in the extension manager using the refresh cache button. I don't know where the error is coming from, otherwise I would fix it :-) I'd say it's safe. The ...


3

Difference between caching - Conservative caching is the standard type of caching. Here’s how it works: A visitor visits a page on your website. Joomla checks if there is a non-expired version of that page in its cache directory. If the cached page exists (and it’s not expired), then Joomla will serve it to the visitor otherwise, a cached version of ...


3

You didn't state what cache settings are producing this problem. Joomla has several cache levels https://docs.joomla.org/Cache. The most aggressive caching option is Page Caching (turned on via the cache system plugin). This will pick out a cached page based on the URI BEFORE your component is even run. Here I think your only option would be to set your ...


3

You should pass to $urlparams an array where the keys are variable names and values are the corresponding filters of this variables. For example: $urlparams = array( 'catid' => 'INT', 'id' => 'INT', 'cid' => 'ARRAY', 'year' => 'INT', 'month' => 'INT', 'limit' => 'UINT', 'limitstart' => 'UINT', 'showall' =&...


3

This is a problem with Zoo that everybody is complaining about. I think Zoo expects you to use Joomla cache, but you aren't, so it is regenerating the images on every refresh. Zoo's official answer to this problem that it cannot be fixed. However, it can be fixed, but that requires modifying a core Zoo file (which most people do not like to do). For backup ...


3

I did a little more research and fixed this by editing the configuration.php file. Specifically, I changed the $cache_handler from 'file' to ''. I still don't know why this works, but can confirm that the issue went away and I don't have to manually clear the cache anymore.


3

You can use mediaVersion. There are a few ways to do that. Look into those 2: Manually adding version to loaded files: $v = JFactory::getDocument()->getMediaVersion() JHtml versioning of loaded files: // Add script JHtml::_('script', 'xxx.js', array('version' => 'auto')); // Add Stylesheets JHtml::_('stylesheet', 'xxx.css', array('version' => '...


3

Ok, let's start from the beginning. Firstly, you should be running Chrome's Lighthouse test to detect any performance related issues. In Chrome, press F12, then go to the Audit tab. I ran an audit on Desktop with no throttling and the performance is simply terrible. So, first thing first, disable the Joomla JCH Optimize plugin so that you can see all of ...


Only top voted, non community-wiki answers of a minimum length are eligible