GithubHelp home page GithubHelp logo

toumoro / tm_cloudfront Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 5.0 572 KB

This is the official repository of the TYPO3 extension tm_cloudfront. This extension clears the AWS CloudFront cache based on the speaking path of a page by creating an AWS CloudFront invalidation queue based on clearCacheCmd.

License: GNU General Public License v2.0

PHP 100.00%

tm_cloudfront's Introduction

TYPO3 Extension tm_cloudfront

This extension clears the AWS CloudFront cache based on the speaking path of a page by creating an AWS CloudFront invalidation queue based on clearCacheCmd.

tm_cloudfront's People

Contributors

marc-munos avatar philippefekete avatar simouel avatar taieb123 avatar tm-lmathieu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

tm_cloudfront's Issues

TYPO3 10.4: Error when invalidating cache

I tried the extension on TYPO3 10.4.20 and if I hide an entry from the News extension I get the following error>:

TypoScriptFrontendController must be constructed with a valid SiteLanguage object or a resolved site in the current request as fallback. None given.

The error goes away, if I deactivate the tm_cloudfront extension.

Tested with extension v1.0.7.

Invalidating caches for news extension pages

Are there any known problems when the extension is running in combination with the news extension?
Currently my cdn cache for the news detail page is not cleared when a news entry is edited :-(
(Typo3 Version 11)
I would be very happy to receive a helpful answer.

Ideas on invalidation optimization

Well, I have some ideas how the invalidation costs can be decreased a lot.
Also the CDN contents will stay faster most of the time because there is a lot of more caching and less warming up again :-)
I have managed to implement some of the things in my local enviroment but I cannot say if these changes would work in all possible enviroments. Complicated to say because of single- or multi-site configurations, single- or multi-domain settings, language fallbacks, detailed language configurations and so on.

Here are my suggestions:
-Invalidate only the caches of pages in languages, which are activated (active site languages, not page languages). Currently all are invalidated also for inactive languages.
-Invalidate only caches of the site, which contains the changed page. I managed to get this running by adding a typoscript snippet on each top level site which only contains a single distribution id. Before all in the backend configured distributions got invalidations for a change on a page of one site.
-Invalidate the page cache only for the current language if the content element is in a specific language and not in "All languages".
Othervise clear all language urls for this page.
-Invalidate the page cache only for pages which are not hidden.

We have a few hundred pages and a just a few editors but the invalidations are exploding a bit. Hopefully this can help someone.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.