Bonjour
Admintools fonctionne-t-il avec le serveur Litespeed et l'extension LS cache de Planet hoster ?
Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Latest post by nicholas on Monday, 01 November 2021 01:33 CDT
Bonjour
Admintools fonctionne-t-il avec le serveur Litespeed et l'extension LS cache de Planet hoster ?
I would recommend AGAINST using that extension because it FORCIBLY caches the output of every page.
For starters, this would break the entire backend of your site unless you excluded /administrator from caching.
It will also cache all static media files, Joomla and third party extensions. This means that after each extension or Joomla update you MUST clear the LiteSpeed cache. Remember that extensions may store their static media files either in their own subdirectories or in a subdirectory of the media folder.
You will also have problem if you update static files in your template or even the images folder, e.g. overwriting an image with a new upload. You will need to manually clear the LiteSpeed cache.
As for Akeeba Backup, it will definitely break the Akeeba Backup JSON API and the frontend backup features since it will be caching the result of the API URLs instead of letting the server handle them. You will be told a backup is instantly finished without the backup ever running.
The LiteSpeed cache is great if you have a mostly static site which gets updated very irregularly. For anything else it will cause far more problems than it will solve.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!
Désolé, mais LS Cache est le cache adapté au serveur LiteSpeed de Planet Hoster et je l'ai installé lorsque je suis passé du serveur Apache au serveur LiteSpeed de Planet Hoster.
Admin Tools était déjà installé et il n'y a pas eu de conflit.
Mais je ne l'ai pas utilisé car des problèmes persistent (Précédent ticket 36001). J'ai appliqué le procédé indiqué (Download Admin Tools 7. Install it twice in a row, WITHOUT uninstalling it before or in between through the System, Install, Extensions page), mais il reste deux erreurs qui sont survenues alors que les serveur était encore Apache :
- htaccess Maker a un messsage d'erreur : Admin Tools for Joomla! - An unhandled Exception has been detected 500 Attempt to assign property "wwwredirs" on array File <root>/administrator/components/com_admintools/src/Model/ServerconfigmakerModel.php Line 509
- Waf exeptions a un messsage d'erreur : Admin Tools for Joomla! - An unhandled Exception has been detected500 count(): Argument #1 ($var) must be of type Countable|array, bool givenFile lt;root>/administrator/components/com_admintools/src/View/Wafexceptions/HtmlView.php Line 91
Peut on résoudre ces erreurs ?
Peut-on rendre compatible Admin Tools avec LS Cache ? En prévention j'ai exclu Admin Tools et Akeeba Backup de LScache (Exclude Components).
" you excluded /administrator from caching" . That mean exclude the folder /administrator ? Comment procéder ?
infos complémentaires
PHP exécuté sur Linux
Type de la base de données mysql
Version de la base de données 10.3.31-MariaDB
Interclassement de la base de données latin1_swedish_ci
Collation de la connexion à la base de données utf8mb4_unicode_ci
Cryptage de la connexion à la base de données Aucun
Version de PHP 8.0.9
Serveur web LiteSpeed
Serveur web pour interface PHP litespeed
Both issues you reported are already fixed. A new version will be released today with those fixes.
Yes, excluding /administrator will cause no problems with Admin Tools.
Please note that as I said in my previous reply you will NOT be able to use Akeeba Backup's JSON API and frontend backup URL. Do not come and ask me to help you fix it. I can't. It's a server issue and you will have to ask your host how to fix it.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!
Bonjour,
OK j'attends pour la nouvelle version.
je fais remonter le problème concernant Akeeba Backup's JSON API à Planet Hoster.
Bonne journée.
You're welcome!
If they ask you about the URL, it's /index.php?option=com_akeeba&view=api (v2 API) or /index.php?option=com_akeeba&view=json (v1 API) or /index.php?option=com_akeeba&view=backup (legacy backup). Caveat: there might be MORE query string parameters and they might be given in a different order then the one above. Moreover, if you are using SEF URLs it's possible that they are redirected to /component/akeeba?view=... by Joomla itself. The JSON API URLs may be accessed with a GET or a POST request. All of these factors are outside our control; they depend either on the third party service using the JSON API or Joomla itself. That's why whitelisting URLs cannot work for the JSON backup API and the legacy frontend backup URLs: we cannot give you a specific URL string.
Your host will need to figure out how to disable caching if the URL has the query string parameter option=com_akeeba (Joomla 3) or option=com_akeebabackup (Joomla 4) OR its path begins with /component/akeeba (Joomla 3) or /component/akeebabackup (Joomla 4).
Bon chance :) (I hope I didn't butcher this; I can read much more French than I can speak!)
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!
Bonsoir Nicholas
J'ai fait la mise à jour et tout semble OK pour Admin Tools.
Pour le problème des Akeeba Backup's JSON API, le support Planet Hoster ma répondu qu'il fallait voir ça avec Litespeedtech qui est le créateur de LS Cache et ma donné un mail :support@litespeedtech. Si tu as le courage je te laisse faire.
J'ai testé LS Cache avec les outils de développement de mon navigateur et il répond : no cache sur toutes les URL. Mais c'est bizarre. Y a-t-il une manière fiable et efficace de tester si les URL sont mises en cache ? C'est important puisque pour utiliser Admin Tools il faut être sûr que les URL liées au folder /admnistrator sont exclues.
Bien cordialement
No, I will not contact LiteSpeed developers again. I already told you that we are aware of the nature of the issue (LiteSpeed cache ignores the HTTP standard headers!) and they will not fix it. I told you that the only way for the JSON API to work is to either disable LiteSpeed cache or have your host create exceptions for certain URLs.
Please note that LiteSpeed Cache is SERVER SIDE CACHING. Your browser only reports client–side caching. The server side caching means that LiteSpeed will reply with a result it has cached on the server side WITHOUT running Joomla, WITHOUT our software running at all. Therefore the result will be wrong.
Since this is the third time I have explained the same thing in this ticket I will say this once more and close the ticket:
LiteSpeed Cache IS A BROKEN, BAD IMPLEMENTATION of server side caching. It can ONLY be used on sites which DO NOT CHANGE AT ALL. It cannot be used on sites which have any kind of dynamic elements such as but not limited to AJAX (XMLHttpRequest) calls to, per–user information such as login modules, JSON APIs etc. Using LIteSpeed Cache with dynamic elements will result in problems which are the sole responsibility of LiteSpeed Cache; the developers of the Joomla CMS and the third party extensions you are using objectively CANNOT help you.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!
Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.
Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!