Version Notes
- Added "Quick Purge" to clean Varnish Cache for a certain URL pattern
- Show VCL snippet for design exception after saving
- Added separate admin backend in VCL with longer timeout values
- Normalize URL in case of leading HTTP scheme and domain in VCL
- Fixed issues where redirects are cached by mistake
Download this release
Release Info
Developer | Magento Core Team |
Extension | Varnish_Cache |
Version | 3.1.1 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.1.1
- README_VARNISH_CACHE.txt +123 -14
- app/code/community/Phoenix/VarnishCache/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Block/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Block/Adminhtml/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Block/Adminhtml/Cache/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Block/Adminhtml/Cache/Additional.php +18 -8
- app/code/community/Phoenix/VarnishCache/Block/Adminhtml/System/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Block/Adminhtml/System/Config/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Block/Adminhtml/System/Config/Fieldset/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Block/Adminhtml/System/Config/Fieldset/RouteTTL.php +10 -10
- app/code/community/Phoenix/VarnishCache/Block/Adminhtml/System/Config/Fieldset/Versioninfo.php +5 -5
- app/code/community/Phoenix/VarnishCache/Helper/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Helper/Cache.php +55 -17
- app/code/community/Phoenix/VarnishCache/Helper/Control/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Helper/Control/Catalog/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Helper/Control/Catalog/Category.php +5 -6
- app/code/community/Phoenix/VarnishCache/Helper/Control/Catalog/Product.php +5 -6
- app/code/community/Phoenix/VarnishCache/Helper/Control/Cms/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Helper/Control/Cms/Page.php +5 -6
- app/code/community/Phoenix/VarnishCache/Helper/Data.php +4 -4
- app/code/community/Phoenix/VarnishCache/Model/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Catalog/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Catalog/Category/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Catalog/Category/Product.php +4 -4
- app/code/community/Phoenix/VarnishCache/Model/Catalog/Product/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Catalog/Product/Relation.php +4 -5
- app/code/community/Phoenix/VarnishCache/Model/Cms/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Cms/Page/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Cms/Page/Store.php +4 -4
- app/code/community/Phoenix/VarnishCache/Model/Control.php +4 -4
- app/code/community/Phoenix/VarnishCache/Model/Control/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Control/Abstract.php +4 -4
- app/code/community/Phoenix/VarnishCache/Model/Control/Catalog/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Control/Catalog/Category.php +4 -4
- app/code/community/Phoenix/VarnishCache/Model/Control/Catalog/Product.php +4 -4
- app/code/community/Phoenix/VarnishCache/Model/Control/Cms/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Control/Cms/Page.php +4 -4
- app/code/community/Phoenix/VarnishCache/Model/Observer.php +65 -15
- app/code/community/Phoenix/VarnishCache/Model/Processor.php +5 -5
- app/code/community/Phoenix/VarnishCache/Model/Resource/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Category/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Category/Product.php +5 -5
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Category/Product/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Category/Product/Collection.php +4 -4
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Product/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Product/Relation/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Product/Relation/Collection.php +4 -4
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Cms/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Cms/Page/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Cms/Page/Store.php +5 -5
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Cms/Page/Store/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Cms/Page/Store/Collection.php +4 -4
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Core/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Core/Url/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Core/Url/Rewrite/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Core/Url/Rewrite/Collection.php +4 -4
- app/code/community/Phoenix/VarnishCache/controllers/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/controllers/Adminhtml/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/controllers/Adminhtml/VarnishCacheController.php +56 -4
- app/code/community/Phoenix/VarnishCache/etc/.DS_Store +0 -0
- app/code/community/Phoenix/VarnishCache/etc/config.xml +27 -8
- app/code/community/Phoenix/VarnishCache/etc/default_2.1.vcl +18 -0
- app/code/community/Phoenix/VarnishCache/etc/default_3.0.vcl +16 -0
- app/code/community/Phoenix/VarnishCache/etc/system.xml +6 -6
- app/design/adminhtml/default/default/layout/varnishcache.xml +7 -7
- app/design/adminhtml/default/default/template/varnishcache/.DS_Store +0 -0
- app/design/adminhtml/default/default/template/varnishcache/cache/.DS_Store +0 -0
- app/design/adminhtml/default/default/template/varnishcache/cache/additional.phtml +27 -6
- app/etc/modules/Phoenix_VarnishCache.xml +5 -5
- app/etc/varnishcache.xml +5 -5
- app/locale/de_DE/Phoenix_VarnishCache.csv +23 -17
- app/locale/en_US/Phoenix_Ipayment.csv +70 -0
- app/locale/en_US/Phoenix_VarnishCache.csv +0 -41
- app/locale/es_ES/Phoenix_VarnishCache.csv +23 -16
- app/locale/fr_FR/Phoenix_VarnishCache.csv +23 -16
- app/locale/nb_NO/Phoenix_VarnishCache.csv +24 -17
- package.xml +16 -12
README_VARNISH_CACHE.txt
CHANGED
@@ -18,13 +18,16 @@ Table of contents
|
|
18 |
4. Configuration
|
19 |
4.1 PageCache module
|
20 |
4.2 Varnish Cache (VCL)
|
|
|
21 |
5. Cache cleaning, PURGE requests
|
22 |
-
6.
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
7.
|
|
|
|
|
28 |
|
29 |
|
30 |
1. Introduction
|
@@ -148,6 +151,16 @@ Server port
|
|
148 |
The port your Varnish servers run on. This port is used for all servers
|
149 |
in your server list.
|
150 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
Disable caching
|
152 |
---------------
|
153 |
This option allows you to deactivate caching of every Magento frontend
|
@@ -203,6 +216,13 @@ controllers/actions basis. To add new TTL value for route 1)click
|
|
203 |
3)input TTL for route in seconds (e.g. "7200"). "Default Cache TTL"
|
204 |
value is used when no TTL for route defined.
|
205 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
Purge category
|
207 |
--------------
|
208 |
This option binds automatic purge of category (Varnish) cache with its
|
@@ -221,6 +241,9 @@ This option is useful to keep product pages and categories up-to-date
|
|
221 |
when product becomes out of stock (e.g. when the last item purchased by
|
222 |
a customer).
|
223 |
|
|
|
|
|
|
|
224 |
Purge CMS page
|
225 |
--------------
|
226 |
This option binds automatic purge of CMS page (Varnish) cache with its
|
@@ -274,6 +297,36 @@ Beside the VCL don't forget to check Varnish's startup parameters. They
|
|
274 |
allow fine tuning of timeouts, cache size, location of the VCL file and
|
275 |
much more. Checkout Varnish Cache documentation for details.
|
276 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
|
278 |
5. Cache cleaning, PURGE requests
|
279 |
=================================
|
@@ -299,6 +352,10 @@ certain store view in Varnish if they have been modified without the
|
|
299 |
need to invalidate any other object which will save a lot of resources
|
300 |
on high frequented stores.
|
301 |
|
|
|
|
|
|
|
|
|
302 |
Beside these direct purge requests PageCache has observers for "Flush
|
303 |
Magento Cache" and "Flush Cache Storage" to purge all objects in Varnish
|
304 |
together with the Magento cache refresh. It also has observers for
|
@@ -312,11 +369,29 @@ pages, categories and products when they are saved (see configuration).
|
|
312 |
If you don’t want these observers to take automatic action comment them
|
313 |
out in the config.xml of the PageCache module.
|
314 |
|
315 |
-
|
316 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
==================
|
318 |
|
319 |
-
|
320 |
================
|
321 |
|
322 |
- "Recently Viewed Products" box is not supported (requires ESI support;
|
@@ -327,7 +402,7 @@ based statistics like Google Analytics or contact Varnish Software who
|
|
327 |
offers additional tools for that as part of their subscription services.
|
328 |
|
329 |
|
330 |
-
|
331 |
======================================
|
332 |
|
333 |
In your Magento installation you will surely have custom modules whose
|
@@ -348,7 +423,7 @@ cookie (compare config.xml):
|
|
348 |
</catalog_product_compare_add_product>
|
349 |
|
350 |
|
351 |
-
|
352 |
======================================================
|
353 |
|
354 |
Varnish as a proxy respects caching information from the backend server like
|
@@ -373,7 +448,7 @@ Note that if a "Expires" header is already set in the HTTP response header
|
|
373 |
mod_expires will respect it and pass this header without changes.
|
374 |
|
375 |
|
376 |
-
|
377 |
======================
|
378 |
|
379 |
If Varnish does not behave like you expect there are some great tools
|
@@ -386,8 +461,11 @@ A really great help for debugging requests is the "varnishlog" command
|
|
386 |
that is part of the Varnish distribution. You can call it on the shell
|
387 |
to show only HTML requests:
|
388 |
|
389 |
-
varnishlog -c -o TxHeader "Content-Type: text/html"
|
|
|
|
|
390 |
|
|
|
391 |
|
392 |
You can also filter the output for a certain client IP:
|
393 |
|
@@ -398,16 +476,47 @@ If you still can’t solve the issues please contact
|
|
398 |
support@phoenix-media.eu to request professional services.
|
399 |
|
400 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
7. Changelog
|
402 |
============
|
403 |
|
404 |
-
1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
- Changed license to OSL for Community Edition
|
406 |
- Instantly purge cache items of CMS pages, categories and products on save
|
407 |
- Configure different TTLs per route/controller
|
408 |
- Use "Cache-Control:s-maxage=x" instead of propriatary headers to control Varnish
|
409 |
- Improved Magento EE compatibility
|
410 |
- Allow frontend Varnish caching while beeing logged in the backend
|
|
|
411 |
- Added design exceptions (beta)
|
412 |
|
413 |
1.1.0
|
18 |
4. Configuration
|
19 |
4.1 PageCache module
|
20 |
4.2 Varnish Cache (VCL)
|
21 |
+
4.3 PageCache Crawler
|
22 |
5. Cache cleaning, PURGE requests
|
23 |
+
6. VCL Design Exceptions
|
24 |
+
7. Troubleshooting
|
25 |
+
7.1 Known issues
|
26 |
+
7.2 Prevent caching for custom modules
|
27 |
+
7.3 Prevent caching for HTML/PHP files outsite Magento
|
28 |
+
7.4 Debugging requests
|
29 |
+
7.5 Vary HTTP header for User-Agent
|
30 |
+
8. Changelog
|
31 |
|
32 |
|
33 |
1. Introduction
|
151 |
The port your Varnish servers run on. This port is used for all servers
|
152 |
in your server list.
|
153 |
|
154 |
+
Admin Server port
|
155 |
+
-----------------
|
156 |
+
The port your Varnish servers telnet listens to. This port is used for all servers
|
157 |
+
in your server list.
|
158 |
+
|
159 |
+
Admin server secret
|
160 |
+
----------------------------
|
161 |
+
Secret string for CLI authentication. This file is used for all servers
|
162 |
+
in your server list.
|
163 |
+
|
164 |
Disable caching
|
165 |
---------------
|
166 |
This option allows you to deactivate caching of every Magento frontend
|
216 |
3)input TTL for route in seconds (e.g. "7200"). "Default Cache TTL"
|
217 |
value is used when no TTL for route defined.
|
218 |
|
219 |
+
Export VCL File
|
220 |
+
---------------
|
221 |
+
When clicked this button, PageCache module reads VCL loaded to RAM,
|
222 |
+
updates it according to Magento Design Exceptions configurations and
|
223 |
+
serves VCL file for download. Varnish servers should be restarted using
|
224 |
+
this file to changes take place.
|
225 |
+
|
226 |
Purge category
|
227 |
--------------
|
228 |
This option binds automatic purge of category (Varnish) cache with its
|
241 |
when product becomes out of stock (e.g. when the last item purchased by
|
242 |
a customer).
|
243 |
|
244 |
+
Export VCL
|
245 |
+
----------
|
246 |
+
|
247 |
Purge CMS page
|
248 |
--------------
|
249 |
This option binds automatic purge of CMS page (Varnish) cache with its
|
297 |
allow fine tuning of timeouts, cache size, location of the VCL file and
|
298 |
much more. Checkout Varnish Cache documentation for details.
|
299 |
|
300 |
+
4.3 PageCache Crawler
|
301 |
+
=====================
|
302 |
+
|
303 |
+
PageCache Crawler allows to maintain up-to-date store's cache. It runs by
|
304 |
+
cron making PageCache module generate cache for crawled pages. Therefore,
|
305 |
+
when a page is visited for the first time its contents delivered from cache
|
306 |
+
rather than backend.
|
307 |
+
|
308 |
+
For configuration, in your Magento backend go to System -> Configurвation ->
|
309 |
+
System and open the "PageCache powered by Varnish auto generation" tab.
|
310 |
+
|
311 |
+
Enable Page Cache Auto Generation
|
312 |
+
---------------------------------
|
313 |
+
Enables the PageCache Crawler module. Please, note that "Cron Expresson for
|
314 |
+
Crawler" should contain a valid cron expression, otherwise crawler won't run.
|
315 |
+
|
316 |
+
Generate Cache for all Currencies
|
317 |
+
---------------------------------
|
318 |
+
If set to "Yes" cache will be generated for pages with all available currencies
|
319 |
+
rather than default currency only.
|
320 |
+
|
321 |
+
Crawler Thread Number
|
322 |
+
---------------------
|
323 |
+
The number of requests crawler process runs in parallel.
|
324 |
+
|
325 |
+
Cron Expression for Crawler
|
326 |
+
---------------------------
|
327 |
+
Defines cron run schedule. This field should contain a valid cron expression
|
328 |
+
string like "0 0 * * *" for daily run or "0 * * * *" for hourly run. For more
|
329 |
+
information read http://en.wikipedia.org/wiki/Cron
|
330 |
|
331 |
5. Cache cleaning, PURGE requests
|
332 |
=================================
|
352 |
need to invalidate any other object which will save a lot of resources
|
353 |
on high frequented stores.
|
354 |
|
355 |
+
It is also possible to purge a single url (e.g. page) using "Quick Purge".
|
356 |
+
Enter desired URL in input field next to "Quick Purge" button and press
|
357 |
+
it. If URL is valid you'll see a success message for purged page.
|
358 |
+
|
359 |
Beside these direct purge requests PageCache has observers for "Flush
|
360 |
Magento Cache" and "Flush Cache Storage" to purge all objects in Varnish
|
361 |
together with the Magento cache refresh. It also has observers for
|
369 |
If you don’t want these observers to take automatic action comment them
|
370 |
out in the config.xml of the PageCache module.
|
371 |
|
372 |
+
6. VCL Design Exceptions
|
373 |
+
========================
|
374 |
+
|
375 |
+
By default Varnish does not take into account User-Agent string of a request
|
376 |
+
when building its cache object. Magento Design Exceptions use regular
|
377 |
+
expressions to match different design configurations to User-Agent strings.
|
378 |
+
In order to make Design Exceptions work with Varnish you will have to renew
|
379 |
+
Varnish VCL each time Design Exceptions are updated. Here' what you have to
|
380 |
+
do: In your Magento backend go to System -> Configuration -> System and open
|
381 |
+
the "PageCache powered by Varnish settings" tab. Press "Export VCL" button.
|
382 |
+
Your browser should start file download your server VCL updated with design
|
383 |
+
exceptions subroutine. Restart your varnish servers using downloaded VCL.
|
384 |
+
|
385 |
+
You can run "man varnishd" in command line for description of varnishd options.
|
386 |
+
Also see documentation explaining how to start varnish for versions 3.0 and 2.1
|
387 |
+
respectively:
|
388 |
+
https://www.varnish-cache.org/docs/3.0/tutorial/starting_varnish.html
|
389 |
+
https://www.varnish-cache.org/docs/2.1/tutorial/starting_varnish.html
|
390 |
+
|
391 |
+
7. Troubleshooting
|
392 |
==================
|
393 |
|
394 |
+
7.1 Known issues
|
395 |
================
|
396 |
|
397 |
- "Recently Viewed Products" box is not supported (requires ESI support;
|
402 |
offers additional tools for that as part of their subscription services.
|
403 |
|
404 |
|
405 |
+
7.2 Prevent caching for custom modules
|
406 |
======================================
|
407 |
|
408 |
In your Magento installation you will surely have custom modules whose
|
423 |
</catalog_product_compare_add_product>
|
424 |
|
425 |
|
426 |
+
7.3 Prevent caching for HTML/PHP files outsite Magento
|
427 |
======================================================
|
428 |
|
429 |
Varnish as a proxy respects caching information from the backend server like
|
448 |
mod_expires will respect it and pass this header without changes.
|
449 |
|
450 |
|
451 |
+
7.4 Debugging requests
|
452 |
======================
|
453 |
|
454 |
If Varnish does not behave like you expect there are some great tools
|
461 |
that is part of the Varnish distribution. You can call it on the shell
|
462 |
to show only HTML requests:
|
463 |
|
464 |
+
varnishlog -c -o TxHeader "Content-Type: text/html" (Varnish 2.1)
|
465 |
+
|
466 |
+
Or of a certain URL:
|
467 |
|
468 |
+
varnishlog -m RxURL:"^/blog" (Varnish 3.0)
|
469 |
|
470 |
You can also filter the output for a certain client IP:
|
471 |
|
476 |
support@phoenix-media.eu to request professional services.
|
477 |
|
478 |
|
479 |
+
7.5 Vary HTTP header for User-Agent
|
480 |
+
===================================
|
481 |
+
|
482 |
+
Some administrators activate this line in Magento's .htaccess file:
|
483 |
+
|
484 |
+
# Make sure proxies don't deliver the wrong content
|
485 |
+
#Header append Vary User-Agent env=!dont-vary
|
486 |
+
|
487 |
+
However this forces Varnish Cache to have one cache element per user agent
|
488 |
+
string for each URL which makes caching almost useless. If you have the
|
489 |
+
feeling that in one browser your cache is hot while in a different
|
490 |
+
browser the Varnish has no cache hits check your backend response with
|
491 |
+
varnishlog and make sure the Vary header only looks like this:
|
492 |
+
|
493 |
+
Vary: Accept-Encoding
|
494 |
+
|
495 |
+
|
496 |
7. Changelog
|
497 |
============
|
498 |
|
499 |
+
3.1.1
|
500 |
+
- Fixed some issues with register_shutdown_function() functionality (introduced in 3.1.0)
|
501 |
+
|
502 |
+
3.1.0
|
503 |
+
- Added "Quick Purge" to clean Varnish Cache for a certain URL pattern
|
504 |
+
- Show VCL snippet for design exception after saving
|
505 |
+
- Added separate admin backend in VCL with longer timeout values
|
506 |
+
- Normalize URL in case of leading HTTP scheme and domain in VCL
|
507 |
+
- Fixed issues where redirects are cached by mistake
|
508 |
+
|
509 |
+
3.0.1
|
510 |
+
- Fixed packaging issue with locales
|
511 |
+
|
512 |
+
3.0.0
|
513 |
- Changed license to OSL for Community Edition
|
514 |
- Instantly purge cache items of CMS pages, categories and products on save
|
515 |
- Configure different TTLs per route/controller
|
516 |
- Use "Cache-Control:s-maxage=x" instead of propriatary headers to control Varnish
|
517 |
- Improved Magento EE compatibility
|
518 |
- Allow frontend Varnish caching while beeing logged in the backend
|
519 |
+
- Added French translation (thanks to Rubén Romero, Varnish Software)
|
520 |
- Added design exceptions (beta)
|
521 |
|
522 |
1.1.0
|
app/code/community/Phoenix/VarnishCache/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Block/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Block/Adminhtml/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Block/Adminhtml/Cache/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Block/Adminhtml/Cache/Additional.php
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is bundled with this package in the file
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
-
* @license http://
|
19 |
*/
|
20 |
|
21 |
/**
|
@@ -71,4 +71,14 @@ class Phoenix_VarnishCache_Block_Adminhtml_Cache_Additional extends Mage_Adminht
|
|
71 |
}
|
72 |
return $options;
|
73 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
21 |
/**
|
71 |
}
|
72 |
return $options;
|
73 |
}
|
74 |
+
|
75 |
+
/**
|
76 |
+
* Returns Quick Purge URL
|
77 |
+
*
|
78 |
+
* @return string
|
79 |
+
*/
|
80 |
+
public function getQuickPurgeUrl()
|
81 |
+
{
|
82 |
+
return $this->getUrl('*/varnishCache/quickPurge');
|
83 |
+
}
|
84 |
}
|
app/code/community/Phoenix/VarnishCache/Block/Adminhtml/System/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Block/Adminhtml/System/Config/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Block/Adminhtml/System/Config/Fieldset/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Block/Adminhtml/System/Config/Fieldset/RouteTTL.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
@@ -24,14 +24,14 @@ class Phoenix_VarnishCache_Block_Adminhtml_System_Config_Fieldset_RouteTTL
|
|
24 |
public function __construct()
|
25 |
{
|
26 |
$this->addColumn(
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
);
|
31 |
$this->addColumn(
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
);
|
36 |
$this->_addAfter = false;
|
37 |
$this->_addButtonLabel = Mage::helper('adminhtml')->__('Add route');
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
24 |
public function __construct()
|
25 |
{
|
26 |
$this->addColumn(
|
27 |
+
'regexp', array(
|
28 |
+
'label' => Mage::helper('adminhtml')->__('Route'),
|
29 |
+
'style' => 'width:120px')
|
30 |
);
|
31 |
$this->addColumn(
|
32 |
+
'value', array(
|
33 |
+
'label' => Mage::helper('adminhtml')->__('TTL'),
|
34 |
+
'style' => 'width:120px')
|
35 |
);
|
36 |
$this->_addAfter = false;
|
37 |
$this->_addButtonLabel = Mage::helper('adminhtml')->__('Add route');
|
app/code/community/Phoenix/VarnishCache/Block/Adminhtml/System/Config/Fieldset/Versioninfo.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
@@ -31,7 +31,7 @@ class Phoenix_VarnishCache_Block_Adminhtml_System_Config_Fieldset_Versioninfo
|
|
31 |
public function render(Varien_Data_Form_Element_Abstract $element)
|
32 |
{
|
33 |
$info = '<fieldset class="config">
|
34 |
-
'.Mage::helper('varnishcache')->__('PageCache powered by Varnish version: %s', Mage::getConfig()->getNode('modules/Phoenix_VarnishCache/version')).'
|
35 |
</fieldset>';
|
36 |
|
37 |
return $info;
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
31 |
public function render(Varien_Data_Form_Element_Abstract $element)
|
32 |
{
|
33 |
$info = '<fieldset class="config">
|
34 |
+
'.Mage::helper('varnishcache')->__('PageCache powered by Varnish Community version: %s', Mage::getConfig()->getNode('modules/Phoenix_VarnishCache/version')).'
|
35 |
</fieldset>';
|
36 |
|
37 |
return $info;
|
app/code/community/Phoenix/VarnishCache/Helper/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Helper/Cache.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
@@ -26,6 +26,8 @@ class Phoenix_VarnishCache_Helper_Cache extends Mage_Core_Helper_Abstract
|
|
26 |
const XML_PATH_VARNISH_CACHE_TTL = 'system/varnishcache/ttl';
|
27 |
const XML_PATH_VARNISH_CACHE_ROUTES_TTL = 'system/varnishcache/routes_ttl';
|
28 |
|
|
|
|
|
29 |
/**
|
30 |
* Cookie name for disabling external caching
|
31 |
*
|
@@ -40,16 +42,16 @@ class Phoenix_VarnishCache_Helper_Cache extends Mage_Core_Helper_Abstract
|
|
40 |
* @return void
|
41 |
*/
|
42 |
const DEBUG_HEADER = 'X-Cache-Debug: 1';
|
43 |
-
|
44 |
-
|
45 |
/**
|
46 |
* Get Cookie object
|
47 |
-
*
|
48 |
* @return Mage_Core_Model_Cookie
|
49 |
*/
|
50 |
public static function getCookie()
|
51 |
{
|
52 |
-
|
53 |
}
|
54 |
|
55 |
|
@@ -60,8 +62,14 @@ class Phoenix_VarnishCache_Helper_Cache extends Mage_Core_Helper_Abstract
|
|
60 |
*/
|
61 |
public function setCacheControlHeaders()
|
62 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
$request = Mage::app()->getRequest();
|
64 |
-
|
65 |
// set debug header
|
66 |
if (Mage::helper('varnishcache')->isDebug()) {
|
67 |
$this->setDebugHeader();
|
@@ -132,19 +140,19 @@ class Phoenix_VarnishCache_Helper_Cache extends Mage_Core_Helper_Abstract
|
|
132 |
|
133 |
return $this;
|
134 |
}
|
135 |
-
|
136 |
/**
|
137 |
* Check for a NO_CACHE cookie and if found force a TTL=0 for this
|
138 |
* page.
|
139 |
-
*
|
140 |
* @return void
|
141 |
*/
|
142 |
public static function sanitizeCacheControlHeader()
|
143 |
{
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
}
|
149 |
|
150 |
/**
|
@@ -190,7 +198,7 @@ class Phoenix_VarnishCache_Helper_Cache extends Mage_Core_Helper_Abstract
|
|
190 |
* For mod_expires it is important to have "Expires" header. However for
|
191 |
* Varnish it is easier to deal with "Cache-Control: s-maxage=xx" as it
|
192 |
* is relative to its system time and not depending on timezone settings.
|
193 |
-
*
|
194 |
* Magento normaly doesn't set any Cache-Control or Expires headers. If they
|
195 |
* appear the are set by PHP's setcookie() function.
|
196 |
*
|
@@ -222,7 +230,7 @@ class Phoenix_VarnishCache_Helper_Cache extends Mage_Core_Helper_Abstract
|
|
222 |
|
223 |
// set "Expires" header in the past to keep mod_expires from applying it's ruleset
|
224 |
$response->setHeader('Expires', 'Mon, 31 Mar 2008 10:00:00 GMT', true);
|
225 |
-
|
226 |
// set "Pragma: no-cache" - just in case
|
227 |
$response->setHeader('Pragma', 'no-cache', true);
|
228 |
}
|
@@ -266,5 +274,35 @@ class Phoenix_VarnishCache_Helper_Cache extends Mage_Core_Helper_Abstract
|
|
266 |
|
267 |
return implode($seperator, $domains);
|
268 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
}
|
270 |
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
26 |
const XML_PATH_VARNISH_CACHE_TTL = 'system/varnishcache/ttl';
|
27 |
const XML_PATH_VARNISH_CACHE_ROUTES_TTL = 'system/varnishcache/routes_ttl';
|
28 |
|
29 |
+
const REGISTRY_VAR_VARNISH_CACHE_CONTROL_HEADERS_SET_FLAG = '_varnish_cache_control_headers_set_flag';
|
30 |
+
|
31 |
/**
|
32 |
* Cookie name for disabling external caching
|
33 |
*
|
42 |
* @return void
|
43 |
*/
|
44 |
const DEBUG_HEADER = 'X-Cache-Debug: 1';
|
45 |
+
|
46 |
+
|
47 |
/**
|
48 |
* Get Cookie object
|
49 |
+
*
|
50 |
* @return Mage_Core_Model_Cookie
|
51 |
*/
|
52 |
public static function getCookie()
|
53 |
{
|
54 |
+
return Mage::getSingleton('core/cookie');
|
55 |
}
|
56 |
|
57 |
|
62 |
*/
|
63 |
public function setCacheControlHeaders()
|
64 |
{
|
65 |
+
if (Mage::registry(self::REGISTRY_VAR_VARNISH_CACHE_CONTROL_HEADERS_SET_FLAG)) {
|
66 |
+
return $this;
|
67 |
+
} else {
|
68 |
+
Mage::register(self::REGISTRY_VAR_VARNISH_CACHE_CONTROL_HEADERS_SET_FLAG, 1);
|
69 |
+
}
|
70 |
+
|
71 |
$request = Mage::app()->getRequest();
|
72 |
+
|
73 |
// set debug header
|
74 |
if (Mage::helper('varnishcache')->isDebug()) {
|
75 |
$this->setDebugHeader();
|
140 |
|
141 |
return $this;
|
142 |
}
|
143 |
+
|
144 |
/**
|
145 |
* Check for a NO_CACHE cookie and if found force a TTL=0 for this
|
146 |
* page.
|
147 |
+
*
|
148 |
* @return void
|
149 |
*/
|
150 |
public static function sanitizeCacheControlHeader()
|
151 |
{
|
152 |
+
$cookie = self::getCookie();
|
153 |
+
if ($cookie->get(self::NO_CACHE_COOKIE)) {
|
154 |
+
self::setNoCacheHeader();
|
155 |
+
}
|
156 |
}
|
157 |
|
158 |
/**
|
198 |
* For mod_expires it is important to have "Expires" header. However for
|
199 |
* Varnish it is easier to deal with "Cache-Control: s-maxage=xx" as it
|
200 |
* is relative to its system time and not depending on timezone settings.
|
201 |
+
*
|
202 |
* Magento normaly doesn't set any Cache-Control or Expires headers. If they
|
203 |
* appear the are set by PHP's setcookie() function.
|
204 |
*
|
230 |
|
231 |
// set "Expires" header in the past to keep mod_expires from applying it's ruleset
|
232 |
$response->setHeader('Expires', 'Mon, 31 Mar 2008 10:00:00 GMT', true);
|
233 |
+
|
234 |
// set "Pragma: no-cache" - just in case
|
235 |
$response->setHeader('Pragma', 'no-cache', true);
|
236 |
}
|
274 |
|
275 |
return implode($seperator, $domains);
|
276 |
}
|
277 |
+
|
278 |
+
/**
|
279 |
+
* Set appropriate cache control raw headers.
|
280 |
+
* Called when script exits before controller_action_postdispatch
|
281 |
+
* avoiding Zend_Controller_Response_Http#sendResponse()
|
282 |
+
*
|
283 |
+
* @return Phoenix_VarnishCache_Helper_Cache
|
284 |
+
*/
|
285 |
+
public function setCacheControlHeadersRaw()
|
286 |
+
{
|
287 |
+
if (Mage::registry(self::REGISTRY_VAR_VARNISH_CACHE_CONTROL_HEADERS_SET_FLAG)
|
288 |
+
|| Mage::app()->getStore()->isAdmin()) {
|
289 |
+
return $this;
|
290 |
+
}
|
291 |
+
|
292 |
+
try {
|
293 |
+
$response = Mage::app()->getResponse();
|
294 |
+
$response->canSendHeaders(true);
|
295 |
+
$this->setCacheControlHeaders();
|
296 |
+
foreach ($response->getHeaders() as $header) {
|
297 |
+
header($header['name'] . ': ' . $header['value'], $header['replace']);
|
298 |
+
}
|
299 |
+
} catch (Exception $e) {
|
300 |
+
// Mage::helper('varnishcache')->debug(
|
301 |
+
// 'Error while trying to set raw cache control headers: '.$e->getMessage()
|
302 |
+
// );
|
303 |
+
}
|
304 |
+
|
305 |
+
return $this;
|
306 |
+
}
|
307 |
}
|
308 |
|
app/code/community/Phoenix/VarnishCache/Helper/Control/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Helper/Control/Catalog/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Helper/Control/Catalog/Category.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
@@ -41,5 +41,4 @@ class Phoenix_VarnishCache_Helper_Control_Catalog_Category extends Phoenix_Varni
|
|
41 |
{
|
42 |
return Mage::getStoreConfigFlag(self::XML_PATH_VARNISH_CACHE_PURGE);
|
43 |
}
|
44 |
-
}
|
45 |
-
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
41 |
{
|
42 |
return Mage::getStoreConfigFlag(self::XML_PATH_VARNISH_CACHE_PURGE);
|
43 |
}
|
44 |
+
}
|
|
app/code/community/Phoenix/VarnishCache/Helper/Control/Catalog/Product.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
@@ -41,5 +41,4 @@ class Phoenix_VarnishCache_Helper_Control_Catalog_Product extends Phoenix_Varnis
|
|
41 |
{
|
42 |
return Mage::getStoreConfigFlag(self::XML_PATH_VARNISH_CACHE_PURGE);
|
43 |
}
|
44 |
-
}
|
45 |
-
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
41 |
{
|
42 |
return Mage::getStoreConfigFlag(self::XML_PATH_VARNISH_CACHE_PURGE);
|
43 |
}
|
44 |
+
}
|
|
app/code/community/Phoenix/VarnishCache/Helper/Control/Cms/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Helper/Control/Cms/Page.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
@@ -41,5 +41,4 @@ class Phoenix_VarnishCache_Helper_Control_Cms_Page extends Phoenix_VarnishCache_
|
|
41 |
{
|
42 |
return Mage::getStoreConfigFlag(self::XML_PATH_VARNISH_CACHE_PURGE);
|
43 |
}
|
44 |
-
}
|
45 |
-
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
41 |
{
|
42 |
return Mage::getStoreConfigFlag(self::XML_PATH_VARNISH_CACHE_PURGE);
|
43 |
}
|
44 |
+
}
|
|
app/code/community/Phoenix/VarnishCache/Helper/Data.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Phoenix/VarnishCache/Model/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Catalog/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Catalog/Category/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Catalog/Category/Product.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Phoenix/VarnishCache/Model/Catalog/Product/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Catalog/Product/Relation.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,13 +11,12 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
-
|
21 |
class Phoenix_VarnishCache_Model_Catalog_Product_Relation extends Mage_Core_Model_Abstract
|
22 |
{
|
23 |
protected function _construct()
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
|
|
20 |
class Phoenix_VarnishCache_Model_Catalog_Product_Relation extends Mage_Core_Model_Abstract
|
21 |
{
|
22 |
protected function _construct()
|
app/code/community/Phoenix/VarnishCache/Model/Cms/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Cms/Page/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Cms/Page/Store.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Phoenix/VarnishCache/Model/Control.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Phoenix/VarnishCache/Model/Control/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Control/Abstract.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Phoenix/VarnishCache/Model/Control/Catalog/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Control/Catalog/Category.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Phoenix/VarnishCache/Model/Control/Catalog/Product.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Phoenix/VarnishCache/Model/Control/Cms/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Control/Cms/Page.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Phoenix/VarnishCache/Model/Observer.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
@@ -80,15 +80,15 @@ class Phoenix_VarnishCache_Model_Observer
|
|
80 |
{
|
81 |
if ($this->_isCacheEnabled()) {
|
82 |
$this->_getCacheControl()->clean(
|
83 |
-
|
84 |
-
|
85 |
);
|
86 |
|
87 |
// also clean HTML files
|
88 |
$this->_getCacheControl()->clean(
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
);
|
93 |
|
94 |
$this->_getSession()->addSuccess(
|
@@ -108,16 +108,16 @@ class Phoenix_VarnishCache_Model_Observer
|
|
108 |
{
|
109 |
if ($this->_isCacheEnabled()) {
|
110 |
$this->_getCacheControl()->clean(
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
);
|
115 |
|
116 |
// also clean HTML files
|
117 |
$this->_getCacheControl()->clean(
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
);
|
122 |
|
123 |
$this->_getSession()->addSuccess(
|
@@ -264,4 +264,54 @@ class Phoenix_VarnishCache_Model_Observer
|
|
264 |
}
|
265 |
return $this;
|
266 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
80 |
{
|
81 |
if ($this->_isCacheEnabled()) {
|
82 |
$this->_getCacheControl()->clean(
|
83 |
+
Mage::helper('varnishcache/cache')->getStoreDomainList(),
|
84 |
+
'^/media/(js|css|css_secure)/'
|
85 |
);
|
86 |
|
87 |
// also clean HTML files
|
88 |
$this->_getCacheControl()->clean(
|
89 |
+
Mage::helper('varnishcache/cache')->getStoreDomainList(),
|
90 |
+
'.*',
|
91 |
+
Phoenix_VarnishCache_Model_Control::CONTENT_TYPE_HTML
|
92 |
);
|
93 |
|
94 |
$this->_getSession()->addSuccess(
|
108 |
{
|
109 |
if ($this->_isCacheEnabled()) {
|
110 |
$this->_getCacheControl()->clean(
|
111 |
+
Mage::helper('varnishcache/cache')->getStoreDomainList(),
|
112 |
+
'^/media/catalog/product/cache/',
|
113 |
+
Phoenix_VarnishCache_Model_Control::CONTENT_TYPE_IMAGE
|
114 |
);
|
115 |
|
116 |
// also clean HTML files
|
117 |
$this->_getCacheControl()->clean(
|
118 |
+
Mage::helper('varnishcache/cache')->getStoreDomainList(),
|
119 |
+
'.*',
|
120 |
+
Phoenix_VarnishCache_Model_Control::CONTENT_TYPE_HTML
|
121 |
);
|
122 |
|
123 |
$this->_getSession()->addSuccess(
|
264 |
}
|
265 |
return $this;
|
266 |
}
|
267 |
+
|
268 |
+
/**
|
269 |
+
* Sets shutdown listner to ensure cache control headers sent in case script exits unexpectedly
|
270 |
+
*
|
271 |
+
* @return Phoenix_VarnishCache_Model_Observer
|
272 |
+
*/
|
273 |
+
public function registerShutdownFunction()
|
274 |
+
{
|
275 |
+
if ($this->_isCacheEnabled()) {
|
276 |
+
/**
|
277 |
+
* workaround for PHP bug with autoload and open_basedir restriction:
|
278 |
+
* ensure the Zend exception class is loaded.
|
279 |
+
*/
|
280 |
+
$exception = new Zend_Controller_Response_Exception;
|
281 |
+
unset($exception);
|
282 |
+
|
283 |
+
// register shutdown method
|
284 |
+
register_shutdown_function(array(Mage::helper('varnishcache/cache'), 'setCacheControlHeadersRaw'));
|
285 |
+
}
|
286 |
+
return $this;
|
287 |
+
}
|
288 |
+
|
289 |
+
/**
|
290 |
+
* Shows notice to update Varnish VCL file
|
291 |
+
*
|
292 |
+
* @param Varien_Event_Observer $observer
|
293 |
+
* @return Phoenix_VarnishCache_Model_Observer
|
294 |
+
*/
|
295 |
+
public function showVclUpdateMessage(Varien_Event_Observer $observer)
|
296 |
+
{
|
297 |
+
try {
|
298 |
+
Mage::getSingleton('core/session')->addNotice(
|
299 |
+
Mage::helper('varnishcache')->__('Update Varnish VCL with design exceptions by using the following snippet:')
|
300 |
+
);
|
301 |
+
|
302 |
+
$designExceptionSubSnippet = Mage::getSingleton('varnishcacheenterprise/vcl')
|
303 |
+
->generateDesignExceptionSub();
|
304 |
+
|
305 |
+
$designExceptionSubSnippet = str_replace(' ', ' ', $designExceptionSubSnippet);
|
306 |
+
$designExceptionSubSnippet = nl2br($designExceptionSubSnippet);
|
307 |
+
|
308 |
+
Mage::getSingleton('core/session')->addNotice($designExceptionSubSnippet);
|
309 |
+
} catch (Exception $e) {
|
310 |
+
$msg = 'Failed to prepare vcl: '.$e->getMessage();
|
311 |
+
Mage::helper('varnishcache')->debug($msg);
|
312 |
+
Mage::throwException($msg);
|
313 |
+
}
|
314 |
+
|
315 |
+
return $this;
|
316 |
+
}
|
317 |
}
|
app/code/community/Phoenix/VarnishCache/Model/Processor.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
@@ -46,4 +46,4 @@ class Phoenix_VarnishCache_Model_Processor
|
|
46 |
}
|
47 |
return $content;
|
48 |
}
|
49 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
46 |
}
|
47 |
return $content;
|
48 |
}
|
49 |
+
}
|
app/code/community/Phoenix/VarnishCache/Model/Resource/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Category/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Category/Product.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
@@ -28,4 +28,4 @@ class Phoenix_VarnishCache_Model_Resource_Mysql4_Catalog_Category_Product
|
|
28 |
{
|
29 |
$this->_init('catalog/category_product', 'category_id');
|
30 |
}
|
31 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
28 |
{
|
29 |
$this->_init('catalog/category_product', 'category_id');
|
30 |
}
|
31 |
+
}
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Category/Product/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Category/Product/Collection.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Product/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Product/Relation/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Catalog/Product/Relation/Collection.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Cms/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Cms/Page/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Cms/Page/Store.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
@@ -28,4 +28,4 @@ class Phoenix_VarnishCache_Model_Resource_Mysql4_Cms_Page_Store
|
|
28 |
{
|
29 |
$this->_init('cms/page_store', 'store_id');
|
30 |
}
|
31 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
28 |
{
|
29 |
$this->_init('cms/page_store', 'store_id');
|
30 |
}
|
31 |
+
}
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Cms/Page/Store/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Cms/Page/Store/Collection.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Core/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Core/Url/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Core/Url/Rewrite/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/Model/Resource/Mysql4/Core/Url/Rewrite/Collection.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Phoenix/VarnishCache/controllers/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/controllers/Adminhtml/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/controllers/Adminhtml/VarnishCacheController.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
@@ -54,4 +54,56 @@ class Phoenix_VarnishCache_Adminhtml_VarnishCacheController
|
|
54 |
}
|
55 |
$this->_redirect('*/cache/index');
|
56 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
* @category Phoenix
|
16 |
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
54 |
}
|
55 |
$this->_redirect('*/cache/index');
|
56 |
}
|
57 |
+
|
58 |
+
public function quickPurgeAction()
|
59 |
+
{
|
60 |
+
try {
|
61 |
+
if (Mage::helper('varnishcache')->isEnabled()) {
|
62 |
+
|
63 |
+
$url = $this->getRequest()->getParam('quick_purge_url', false);
|
64 |
+
if (!$url) {
|
65 |
+
throw new Mage_Core_Exception(Mage::helper('varnishcache')->__('Invalid URL "%s".', $url));
|
66 |
+
}
|
67 |
+
|
68 |
+
$domainList = Mage::helper('varnishcache/cache')->getStoreDomainList();
|
69 |
+
extract(parse_url($url));
|
70 |
+
if (!isset($host)) {
|
71 |
+
throw new Mage_Core_Exception(Mage::helper('varnishcache')->__('Invalid URL "%s".', $url));
|
72 |
+
}
|
73 |
+
if (!in_array($host, explode('|', $domainList))) {
|
74 |
+
throw new Mage_Core_Exception(Mage::helper('varnishcache')->__('Invalid domain "%s".', $host));
|
75 |
+
}
|
76 |
+
|
77 |
+
$uri = '';
|
78 |
+
if (isset($path)) {
|
79 |
+
$uri .= $path;
|
80 |
+
}
|
81 |
+
if (isset($query)) {
|
82 |
+
$uri .= '\?';
|
83 |
+
$uri .= $query;
|
84 |
+
}
|
85 |
+
if (isset($fragment)) {
|
86 |
+
$uri .= '#';
|
87 |
+
$uri .= $fragment;
|
88 |
+
}
|
89 |
+
|
90 |
+
Mage::getModel('varnishcache/control')
|
91 |
+
->clean($host, sprintf('^%s$', $uri));
|
92 |
+
|
93 |
+
$this->_getSession()->addSuccess(
|
94 |
+
Mage::helper('varnishcache')->__('The URL\'s "%s" cache has been cleaned.', $url)
|
95 |
+
);
|
96 |
+
}
|
97 |
+
}
|
98 |
+
catch (Mage_Core_Exception $e) {
|
99 |
+
$this->_getSession()->addError($e->getMessage());
|
100 |
+
}
|
101 |
+
catch (Exception $e) {
|
102 |
+
$this->_getSession()->addException(
|
103 |
+
$e,
|
104 |
+
Mage::helper('varnishcache')->__('An error occurred while clearing the Varnish cache.')
|
105 |
+
);
|
106 |
+
}
|
107 |
+
$this->_redirect('*/cache/index');
|
108 |
+
}
|
109 |
}
|
app/code/community/Phoenix/VarnishCache/etc/.DS_Store
DELETED
Binary file
|
app/code/community/Phoenix/VarnishCache/etc/config.xml
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
* PageCache powered by Varnish
|
5 |
-
*
|
6 |
* NOTICE OF LICENSE
|
7 |
-
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
* that is bundled with this package in the file LICENSE.txt.
|
10 |
* It is also available through the world-wide-web at this URL:
|
@@ -12,17 +12,17 @@
|
|
12 |
* If you did not receive a copy of the license and are unable to
|
13 |
* obtain it through the world-wide-web, please send an email
|
14 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
15 |
-
*
|
16 |
* @category Phoenix
|
17 |
* @package Phoenix_VarnishCache
|
18 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
-->
|
22 |
<config>
|
23 |
<modules>
|
24 |
<Phoenix_VarnishCache>
|
25 |
-
<version>3.
|
26 |
</Phoenix_VarnishCache>
|
27 |
</modules>
|
28 |
<global>
|
@@ -55,6 +55,16 @@
|
|
55 |
</phoenix_varnishcache>
|
56 |
</observers>
|
57 |
</cataloginventory_stock_item_save_after>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
</events>
|
59 |
</global>
|
60 |
<admin>
|
@@ -165,6 +175,15 @@
|
|
165 |
</phoenix_varnishcache>
|
166 |
</observers>
|
167 |
</cms_page_save_after>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
</events>
|
169 |
</adminhtml>
|
170 |
<frontend>
|
@@ -186,7 +205,7 @@
|
|
186 |
</varnishcache>
|
187 |
</observers>
|
188 |
</http_response_send_before>
|
189 |
-
|
190 |
<!-- stop page caching at visitor interaction -->
|
191 |
<core_session_abstract_add_message>
|
192 |
<observers>
|
@@ -253,4 +272,4 @@ wishlist]]></disable_routes>
|
|
253 |
</varnishcache>
|
254 |
</system>
|
255 |
</default>
|
256 |
-
</config>
|
1 |
+
<?xml version="1.0" encoding="utf-8" ?>
|
2 |
<!--
|
3 |
/**
|
4 |
* PageCache powered by Varnish
|
5 |
+
*
|
6 |
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
* that is bundled with this package in the file LICENSE.txt.
|
10 |
* It is also available through the world-wide-web at this URL:
|
12 |
* If you did not receive a copy of the license and are unable to
|
13 |
* obtain it through the world-wide-web, please send an email
|
14 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
15 |
+
*
|
16 |
* @category Phoenix
|
17 |
* @package Phoenix_VarnishCache
|
18 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
-->
|
22 |
<config>
|
23 |
<modules>
|
24 |
<Phoenix_VarnishCache>
|
25 |
+
<version>3.1.1</version>
|
26 |
</Phoenix_VarnishCache>
|
27 |
</modules>
|
28 |
<global>
|
55 |
</phoenix_varnishcache>
|
56 |
</observers>
|
57 |
</cataloginventory_stock_item_save_after>
|
58 |
+
|
59 |
+
<!-- register shutdown function to handle core url rewrite raw exit -->
|
60 |
+
<controller_front_init_routers>
|
61 |
+
<observers>
|
62 |
+
<phoenix_varnishcache>
|
63 |
+
<class>varnishcache/observer</class>
|
64 |
+
<method>registerShutdownFunction</method>
|
65 |
+
</phoenix_varnishcache>
|
66 |
+
</observers>
|
67 |
+
</controller_front_init_routers>
|
68 |
</events>
|
69 |
</global>
|
70 |
<admin>
|
175 |
</phoenix_varnishcache>
|
176 |
</observers>
|
177 |
</cms_page_save_after>
|
178 |
+
|
179 |
+
<core_config_backend_design_exception_save_commit_after>
|
180 |
+
<observers>
|
181 |
+
<varnishcache>
|
182 |
+
<class>varnishcache/observer</class>
|
183 |
+
<method>showVclUpdateMessage</method>
|
184 |
+
</varnishcache>
|
185 |
+
</observers>
|
186 |
+
</core_config_backend_design_exception_save_commit_after>
|
187 |
</events>
|
188 |
</adminhtml>
|
189 |
<frontend>
|
205 |
</varnishcache>
|
206 |
</observers>
|
207 |
</http_response_send_before>
|
208 |
+
|
209 |
<!-- stop page caching at visitor interaction -->
|
210 |
<core_session_abstract_add_message>
|
211 |
<observers>
|
272 |
</varnishcache>
|
273 |
</system>
|
274 |
</default>
|
275 |
+
</config>
|
app/code/community/Phoenix/VarnishCache/etc/default_2.1.vcl
CHANGED
@@ -6,6 +6,15 @@ backend default {
|
|
6 |
.port = "8080";
|
7 |
}
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
# add your Magento server IP to allow purges from the backend
|
10 |
acl purge {
|
11 |
"localhost";
|
@@ -43,12 +52,20 @@ sub vcl_recv {
|
|
43 |
purge("obj.http.X-Purge-Host ~ " req.http.X-Purge-Host " && obj.http.X-Purge-URL ~ " req.http.X-Purge-Regex " && obj.http.Content-Type ~ " req.http.X-Purge-Content-Type);
|
44 |
error 200 "Purged.";
|
45 |
}
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
# we only deal with GET and HEAD by default
|
48 |
if (req.request != "GET" && req.request != "HEAD") {
|
49 |
return (pass);
|
50 |
}
|
51 |
|
|
|
|
|
|
|
52 |
# static files are always cacheable. remove SSL flag and cookie
|
53 |
if (req.url ~ "^/(media|js|skin)/.*\.(png|jpg|jpeg|gif|css|js|swf|ico)$") {
|
54 |
unset req.http.Https;
|
@@ -163,6 +180,7 @@ sub vcl_fetch {
|
|
163 |
}
|
164 |
return (deliver);
|
165 |
}
|
|
|
166 |
return (pass);
|
167 |
}
|
168 |
|
6 |
.port = "8080";
|
7 |
}
|
8 |
|
9 |
+
# admin backend with longer timeout values. Set this to the same IP & port as your default server.
|
10 |
+
backend admin {
|
11 |
+
.host = "127.0.0.1";
|
12 |
+
.port = "8080";
|
13 |
+
.first_byte_timeout = 18000s;
|
14 |
+
.between_bytes_timeout = 18000s;
|
15 |
+
}
|
16 |
+
|
17 |
+
|
18 |
# add your Magento server IP to allow purges from the backend
|
19 |
acl purge {
|
20 |
"localhost";
|
52 |
purge("obj.http.X-Purge-Host ~ " req.http.X-Purge-Host " && obj.http.X-Purge-URL ~ " req.http.X-Purge-Regex " && obj.http.Content-Type ~ " req.http.X-Purge-Content-Type);
|
53 |
error 200 "Purged.";
|
54 |
}
|
55 |
+
|
56 |
+
# switch to admin backend configuration
|
57 |
+
if (req.http.cookie ~ "adminhtml=") {
|
58 |
+
set req.backend = admin;
|
59 |
+
}
|
60 |
|
61 |
# we only deal with GET and HEAD by default
|
62 |
if (req.request != "GET" && req.request != "HEAD") {
|
63 |
return (pass);
|
64 |
}
|
65 |
|
66 |
+
# normalize url in case of leading HTTP scheme and domain
|
67 |
+
set req.url = regsub(req.url, "^http[s]?://[^/]+", "");
|
68 |
+
|
69 |
# static files are always cacheable. remove SSL flag and cookie
|
70 |
if (req.url ~ "^/(media|js|skin)/.*\.(png|jpg|jpeg|gif|css|js|swf|ico)$") {
|
71 |
unset req.http.Https;
|
180 |
}
|
181 |
return (deliver);
|
182 |
}
|
183 |
+
|
184 |
return (pass);
|
185 |
}
|
186 |
|
app/code/community/Phoenix/VarnishCache/etc/default_3.0.vcl
CHANGED
@@ -6,6 +6,14 @@ backend default {
|
|
6 |
.port = "8080";
|
7 |
}
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
# add your Magento server IP to allow purges from the backend
|
10 |
acl purge {
|
11 |
"localhost";
|
@@ -44,11 +52,19 @@ sub vcl_recv {
|
|
44 |
error 200 "Purged.";
|
45 |
}
|
46 |
|
|
|
|
|
|
|
|
|
|
|
47 |
# we only deal with GET and HEAD by default
|
48 |
if (req.request != "GET" && req.request != "HEAD") {
|
49 |
return (pass);
|
50 |
}
|
51 |
|
|
|
|
|
|
|
52 |
# static files are always cacheable. remove SSL flag and cookie
|
53 |
if (req.url ~ "^/(media|js|skin)/.*\.(png|jpg|jpeg|gif|css|js|swf|ico)$") {
|
54 |
unset req.http.Https;
|
6 |
.port = "8080";
|
7 |
}
|
8 |
|
9 |
+
# admin backend with longer timeout values. Set this to the same IP & port as your default server.
|
10 |
+
backend admin {
|
11 |
+
.host = "127.0.0.1";
|
12 |
+
.port = "8080";
|
13 |
+
.first_byte_timeout = 18000s;
|
14 |
+
.between_bytes_timeout = 18000s;
|
15 |
+
}
|
16 |
+
|
17 |
# add your Magento server IP to allow purges from the backend
|
18 |
acl purge {
|
19 |
"localhost";
|
52 |
error 200 "Purged.";
|
53 |
}
|
54 |
|
55 |
+
# switch to admin backend configuration
|
56 |
+
if (req.http.cookie ~ "adminhtml=") {
|
57 |
+
set req.backend = admin;
|
58 |
+
}
|
59 |
+
|
60 |
# we only deal with GET and HEAD by default
|
61 |
if (req.request != "GET" && req.request != "HEAD") {
|
62 |
return (pass);
|
63 |
}
|
64 |
|
65 |
+
# normalize url in case of leading HTTP scheme and domain
|
66 |
+
set req.url = regsub(req.url, "^http[s]?://[^/]+", "");
|
67 |
+
|
68 |
# static files are always cacheable. remove SSL flag and cookie
|
69 |
if (req.url ~ "^/(media|js|skin)/.*\.(png|jpg|jpeg|gif|css|js|swf|ico)$") {
|
70 |
unset req.http.Https;
|
app/code/community/Phoenix/VarnishCache/etc/system.xml
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
* PageCache powered by Varnish
|
5 |
-
*
|
6 |
* NOTICE OF LICENSE
|
7 |
-
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
* that is bundled with this package in the file LICENSE.txt.
|
10 |
* It is also available through the world-wide-web at this URL:
|
@@ -12,10 +12,10 @@
|
|
12 |
* If you did not receive a copy of the license and are unable to
|
13 |
* obtain it through the world-wide-web, please send an email
|
14 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
15 |
-
*
|
16 |
* @category Phoenix
|
17 |
* @package Phoenix_VarnishCache
|
18 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
-->
|
@@ -28,7 +28,7 @@
|
|
28 |
<show_in_default>1</show_in_default>
|
29 |
<show_in_website>1</show_in_website>
|
30 |
<show_in_store>1</show_in_store>
|
31 |
-
<sort_order>
|
32 |
<fields>
|
33 |
<versioninfo>
|
34 |
<frontend_model>varnishcache/adminhtml_system_config_fieldset_versioninfo</frontend_model>
|
1 |
+
<?xml version="1.0" encoding="utf-8" ?>
|
2 |
<!--
|
3 |
/**
|
4 |
* PageCache powered by Varnish
|
5 |
+
*
|
6 |
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
* that is bundled with this package in the file LICENSE.txt.
|
10 |
* It is also available through the world-wide-web at this URL:
|
12 |
* If you did not receive a copy of the license and are unable to
|
13 |
* obtain it through the world-wide-web, please send an email
|
14 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
15 |
+
*
|
16 |
* @category Phoenix
|
17 |
* @package Phoenix_VarnishCache
|
18 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
-->
|
28 |
<show_in_default>1</show_in_default>
|
29 |
<show_in_website>1</show_in_website>
|
30 |
<show_in_store>1</show_in_store>
|
31 |
+
<sort_order>810</sort_order>
|
32 |
<fields>
|
33 |
<versioninfo>
|
34 |
<frontend_model>varnishcache/adminhtml_system_config_fieldset_versioninfo</frontend_model>
|
app/design/adminhtml/default/default/layout/varnishcache.xml
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
* PageCache powered by Varnish
|
5 |
-
*
|
6 |
* NOTICE OF LICENSE
|
7 |
-
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
* that is bundled with this package in the file LICENSE.txt.
|
10 |
* It is also available through the world-wide-web at this URL:
|
@@ -12,10 +12,10 @@
|
|
12 |
* If you did not receive a copy of the license and are unable to
|
13 |
* obtain it through the world-wide-web, please send an email
|
14 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
15 |
-
*
|
16 |
-
* @category
|
17 |
-
* @package
|
18 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
-->
|
1 |
+
<?xml version="1.0" encoding="utf-8" ?>
|
2 |
<!--
|
3 |
/**
|
4 |
* PageCache powered by Varnish
|
5 |
+
*
|
6 |
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
* that is bundled with this package in the file LICENSE.txt.
|
10 |
* It is also available through the world-wide-web at this URL:
|
12 |
* If you did not receive a copy of the license and are unable to
|
13 |
* obtain it through the world-wide-web, please send an email
|
14 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category Phoenix
|
17 |
+
* @package Phoenix_VarnishCache
|
18 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
-->
|
app/design/adminhtml/default/default/template/varnishcache/.DS_Store
DELETED
Binary file
|
app/design/adminhtml/default/default/template/varnishcache/cache/.DS_Store
DELETED
Binary file
|
app/design/adminhtml/default/default/template/varnishcache/cache/additional.phtml
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
-
*
|
5 |
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
@@ -11,10 +11,10 @@
|
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* @category
|
16 |
-
* @package
|
17 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
?>
|
@@ -47,4 +47,25 @@
|
|
47 |
</tr>
|
48 |
</table>
|
49 |
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
<?php endif;?>
|
1 |
<?php
|
2 |
/**
|
3 |
* PageCache powered by Varnish
|
4 |
+
*
|
5 |
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Phoenix
|
16 |
+
* @package Phoenix_VarnishCache
|
17 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
?>
|
47 |
</tr>
|
48 |
</table>
|
49 |
</form>
|
50 |
+
<form id="quick_purge_form" action="<?php echo $this->getQuickPurgeUrl() ?>" method="post" id="varnish_clean_form" enctype="multipart/form-data">
|
51 |
+
<?php echo $this->getBlockHtml('formkey')?>
|
52 |
+
<table class="form-list">
|
53 |
+
<tr>
|
54 |
+
<td class="scope-label">
|
55 |
+
<button type="submit" class="scalable"><span><?php echo Mage::helper('varnishcache')->__('Quick Purge') ?></span></button>
|
56 |
+
</td>
|
57 |
+
<td>
|
58 |
+
<input type="text" name="quick_purge_url" class="input-text required-entry" style="width:250px" />
|
59 |
+
</td>
|
60 |
+
<td class="scope-label">
|
61 |
+
<?php echo Mage::helper('varnishcache')->__('Ban URL in Varnish Cache.')?>
|
62 |
+
</td>
|
63 |
+
</tr>
|
64 |
+
</table>
|
65 |
+
</form>
|
66 |
+
<script type="text/javascript">
|
67 |
+
//<![CDATA[
|
68 |
+
var quickPurgeForm = new varienForm('quick_purge_form');
|
69 |
+
//]]>
|
70 |
+
</script>
|
71 |
<?php endif;?>
|
app/etc/modules/Phoenix_VarnishCache.xml
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
* PageCache powered by Varnish
|
5 |
-
*
|
6 |
* NOTICE OF LICENSE
|
7 |
-
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
* that is bundled with this package in the file LICENSE.txt.
|
10 |
* It is also available through the world-wide-web at this URL:
|
@@ -12,10 +12,10 @@
|
|
12 |
* If you did not receive a copy of the license and are unable to
|
13 |
* obtain it through the world-wide-web, please send an email
|
14 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
15 |
-
*
|
16 |
* @category Phoenix
|
17 |
* @package Phoenix_VarnishCache
|
18 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
-->
|
1 |
+
<?xml version="1.0" encoding="utf-8" ?>
|
2 |
<!--
|
3 |
/**
|
4 |
* PageCache powered by Varnish
|
5 |
+
*
|
6 |
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
* that is bundled with this package in the file LICENSE.txt.
|
10 |
* It is also available through the world-wide-web at this URL:
|
12 |
* If you did not receive a copy of the license and are unable to
|
13 |
* obtain it through the world-wide-web, please send an email
|
14 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
15 |
+
*
|
16 |
* @category Phoenix
|
17 |
* @package Phoenix_VarnishCache
|
18 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
-->
|
app/etc/varnishcache.xml
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
<!--
|
3 |
/**
|
4 |
* PageCache powered by Varnish
|
5 |
-
*
|
6 |
* NOTICE OF LICENSE
|
7 |
-
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
* that is bundled with this package in the file LICENSE.txt.
|
10 |
* It is also available through the world-wide-web at this URL:
|
@@ -12,10 +12,10 @@
|
|
12 |
* If you did not receive a copy of the license and are unable to
|
13 |
* obtain it through the world-wide-web, please send an email
|
14 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
15 |
-
*
|
16 |
* @category Phoenix
|
17 |
* @package Phoenix_VarnishCache
|
18 |
-
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
-->
|
@@ -27,4 +27,4 @@
|
|
27 |
</request_processors>
|
28 |
</cache>
|
29 |
</global>
|
30 |
-
</config>
|
2 |
<!--
|
3 |
/**
|
4 |
* PageCache powered by Varnish
|
5 |
+
*
|
6 |
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
* that is bundled with this package in the file LICENSE.txt.
|
10 |
* It is also available through the world-wide-web at this URL:
|
12 |
* If you did not receive a copy of the license and are unable to
|
13 |
* obtain it through the world-wide-web, please send an email
|
14 |
* to support@phoenix-media.eu so we can send you a copy immediately.
|
15 |
+
*
|
16 |
* @category Phoenix
|
17 |
* @package Phoenix_VarnishCache
|
18 |
+
* @copyright Copyright (c) 2011 PHOENIX MEDIA GmbH & Co. KG (http://www.phoenix-media.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
-->
|
27 |
</request_processors>
|
28 |
</cache>
|
29 |
</global>
|
30 |
+
</config>
|
app/locale/de_DE/Phoenix_VarnishCache.csv
CHANGED
@@ -1,42 +1,48 @@
|
|
|
|
|
|
|
|
1 |
"All content types","Alle Content-Types"
|
2 |
"All stores","Alle Stores"
|
3 |
"An error occurred while clearing the Varnish cache.","Beim Leeren des Varnish Caches trat ein Fehler auf."
|
4 |
"CSS","CSS"
|
|
|
5 |
"Clean Varnish Cache","Varnish Cache leeren"
|
6 |
"Debug","Debug"
|
|
|
7 |
"Disable caching","Caching deaktivieren"
|
8 |
"Disable caching for routes","Caching für Routen deaktivieren"
|
9 |
"Disable caching vars","Cache-Deaktivierungs-Variablen"
|
10 |
"Domain or IP list separted by semicolon (e.g. host1;127.0.0.1)","Domänen- oder IP-Liste getrennt durch Strichpunkt (z.B. server1;127.0.0.1)"
|
11 |
"Enable cache module","Aktiviere Caching Modul"
|
12 |
"HTML","HTML"
|
13 |
-
"If you see this message everything is fine.","Wenn Sie diese Nachricht sehen ist alles in Ordnung."
|
14 |
"Images","Bilder"
|
15 |
"JavaScript","JavaScript"
|
16 |
-
"PageCache powered by Varnish
|
|
|
17 |
"Pass X-headers for debugging purpose to the client and log purge requests to /var/log/varnish_cache.log (ensure developer log is enabled).","X-Header für Debugging an den Client weitergeben und PURGE-Requests in /var/log/varnish_cache.log schreiben (Entwickler-Log muss aktiviert sein)."
|
18 |
"Port of the Varnish servers (e.g. 8080)","Port der Varnish Server (e.g. 8080)"
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
"Remove selected cache items in external Varnish cache.","Entfernung ausgewählter Objekte aus dem externen Varnish Cache."
|
20 |
"Request variables that force setting of NO_CACHE cookie to permanent disable caching for visitor.","GET-Variablen, die das Setzen des NO_CACHE Cookies erzwingen, um das Caching für den Besucher dauerhaft zu deaktivieren."
|
21 |
"Server port","Server Port"
|
22 |
-
"Set ""
|
23 |
-
"Cache TTL for routes","Cache-TTL für Routen"
|
24 |
"Set a TTL of ""0"" for every request","Setzt einen TTL von ""0"" für jede Anfrage"
|
25 |
-
"TTL for cached pages in seconds for certain routes/actions (e.g. Route:""catalog_product_view"", TTL:""7200"").","TTL für gecachte Seiten in Sekunden (z.B. Route:""catalog_product_view"", TTL:""7200"")."
|
26 |
"TTL for cached pages in seconds (e.g. ""1800"" = page cache is valid for 30 minutes).","TTL für gecachte Seiten in Sekunden (z.B. ""1800"" = Seiten-Cache ist für 30 Minuten gültig)."
|
|
|
27 |
"The JavaScript/CSS cache has been cleaned on the Varnish servers.","Der JavaScript/CSS Cache wurde in den Varnish Servern geleert."
|
28 |
"The Varnish cache has been cleaned.","Der Varnish Cache wurde geleert."
|
29 |
"The catalog image cache has been cleaned on the Varnish servers.","Der Katalog Bilder Cache wurde in den Varnish Servern geleert."
|
30 |
-
"PageCache powered by Varnish settings","PageCache powered by Varnish Einstellungen"
|
31 |
-
"Varnish servers","Varnish Server"
|
32 |
-
"Purge category","Kategorie leeren"
|
33 |
-
"Purge categorie's cache item on save","Leere Cache-Element der Kategorie beim Speichern"
|
34 |
-
"Purge product","Produkt leeren"
|
35 |
-
"Purge product's cache item on save","Leere Cache-Element des Produkts beim Speichern"
|
36 |
-
"Purge CMS page","CMS-Seite leeren"
|
37 |
-
"Purge CMS page's cache item on save","Leere Cache-Element der CMS-Seite beim Speichern"
|
38 |
-
"Route","Route"
|
39 |
-
"TTL","TTL"
|
40 |
-
"Add route","Route hinzufügen"
|
41 |
"Varnish cache for ""%s"" has been purged.","Varnish Cache von ""%s"" wurde geleert."
|
42 |
-
"Varnish cache for the product's categories has been purged.","Varnish Cache der Produktkategorie wurde geleert."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Add route","Route hinzufügen"
|
2 |
+
"Route","Route"
|
3 |
+
"TTL","TTL"
|
4 |
"All content types","Alle Content-Types"
|
5 |
"All stores","Alle Stores"
|
6 |
"An error occurred while clearing the Varnish cache.","Beim Leeren des Varnish Caches trat ein Fehler auf."
|
7 |
"CSS","CSS"
|
8 |
+
"Cache TTL for routes","Cache-TTL für Routen"
|
9 |
"Clean Varnish Cache","Varnish Cache leeren"
|
10 |
"Debug","Debug"
|
11 |
+
"Default cache TTL","Default cache TTL"
|
12 |
"Disable caching","Caching deaktivieren"
|
13 |
"Disable caching for routes","Caching für Routen deaktivieren"
|
14 |
"Disable caching vars","Cache-Deaktivierungs-Variablen"
|
15 |
"Domain or IP list separted by semicolon (e.g. host1;127.0.0.1)","Domänen- oder IP-Liste getrennt durch Strichpunkt (z.B. server1;127.0.0.1)"
|
16 |
"Enable cache module","Aktiviere Caching Modul"
|
17 |
"HTML","HTML"
|
|
|
18 |
"Images","Bilder"
|
19 |
"JavaScript","JavaScript"
|
20 |
+
"PageCache powered by Varnish settings","PageCache powered by Varnish Einstellungen"
|
21 |
+
"PageCache powered by Varnish Community version: %s","PageCache powered by Varnish Community Version: %s"
|
22 |
"Pass X-headers for debugging purpose to the client and log purge requests to /var/log/varnish_cache.log (ensure developer log is enabled).","X-Header für Debugging an den Client weitergeben und PURGE-Requests in /var/log/varnish_cache.log schreiben (Entwickler-Log muss aktiviert sein)."
|
23 |
"Port of the Varnish servers (e.g. 8080)","Port der Varnish Server (e.g. 8080)"
|
24 |
+
"Purge CMS page","CMS-Seite leeren"
|
25 |
+
"Purge CMS page's cache item on save","Leere Cache-Element der CMS-Seite beim Speichern"
|
26 |
+
"Purge categorie's cache item on save","Leere Cache-Element der Kategorie beim Speichern"
|
27 |
+
"Purge category","Kategorie leeren"
|
28 |
+
"Purge product","Produkt leeren"
|
29 |
+
"Purge product's cache item on save","Leere Cache-Element des Produkts beim Speichern"
|
30 |
"Remove selected cache items in external Varnish cache.","Entfernung ausgewählter Objekte aus dem externen Varnish Cache."
|
31 |
"Request variables that force setting of NO_CACHE cookie to permanent disable caching for visitor.","GET-Variablen, die das Setzen des NO_CACHE Cookies erzwingen, um das Caching für den Besucher dauerhaft zu deaktivieren."
|
32 |
"Server port","Server Port"
|
33 |
+
"Set a TTL of ""0"" for certain routes/actions (e.g. checkout, catalog_product_view). Use one per line.","TTL von ""0"" für bestimmte Routen/Controller-Actions (z.B. checkout, catalog_product_view) setzen. Ein Ausdruck pro Zeile."
|
|
|
34 |
"Set a TTL of ""0"" for every request","Setzt einen TTL von ""0"" für jede Anfrage"
|
|
|
35 |
"TTL for cached pages in seconds (e.g. ""1800"" = page cache is valid for 30 minutes).","TTL für gecachte Seiten in Sekunden (z.B. ""1800"" = Seiten-Cache ist für 30 Minuten gültig)."
|
36 |
+
"TTL for cached pages in seconds for certain routes/actions (e.g. Route:""catalog_product_view"", TTL:""7200"").","TTL für gecachte Seiten in Sekunden (z.B. Route:""catalog_product_view"", TTL:""7200"")."
|
37 |
"The JavaScript/CSS cache has been cleaned on the Varnish servers.","Der JavaScript/CSS Cache wurde in den Varnish Servern geleert."
|
38 |
"The Varnish cache has been cleaned.","Der Varnish Cache wurde geleert."
|
39 |
"The catalog image cache has been cleaned on the Varnish servers.","Der Katalog Bilder Cache wurde in den Varnish Servern geleert."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
"Varnish cache for ""%s"" has been purged.","Varnish Cache von ""%s"" wurde geleert."
|
41 |
+
"Varnish cache for the product's categories has been purged.","Varnish Cache der Produktkategorie wurde geleert."
|
42 |
+
"Varnish servers","Varnish Server"
|
43 |
+
"Quick Purge","Quick Purge"
|
44 |
+
"Ban URL in Varnish Cache.","Entfernt URL aus dem Varnish Cache."
|
45 |
+
"Invalid URL ""%s"".","Ungültige URL ""%s""."
|
46 |
+
"Invalid domain ""%s"".","Ungültige Domäne ""%s""."
|
47 |
+
"The URL's ""%s"" cache has been cleaned.","Der Cache der URL ""%s"" wurde geleert."
|
48 |
+
"Update Varnish VCL with design exceptions by using the following snippet:","Aktualisieren Sie die Varnish VCL für die Design Exceptions indem Sie folgendes Schnipsel dort einfügen:"
|
app/locale/en_US/Phoenix_Ipayment.csv
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"1&1 ipayment credit card","1&1 ipayment credit card"
|
2 |
+
"1&1 ipayment direct debit","1&1 ipayment direct debit"
|
3 |
+
"Enabled","Enabled"
|
4 |
+
"Sort order","Sort order"
|
5 |
+
"Title","Title"
|
6 |
+
"Payment to applicable countries","Payment to applicable countries"
|
7 |
+
"Payment to specific countries","Payment to specific countries"
|
8 |
+
"Credit Card Types","Credit Card Types"
|
9 |
+
"Card Verification Number","Card Verification Number"
|
10 |
+
"Transaction Type","Transaction Type"
|
11 |
+
"Account ID","Account ID"
|
12 |
+
"Application ID","Application ID"
|
13 |
+
"Application password","Application password"
|
14 |
+
"Action password","Admin-Action Password"
|
15 |
+
"Preauthorization","Preauthorization with separate capture"
|
16 |
+
"Authorization","Authorization with immediate capture"
|
17 |
+
"Ipayment error: %s","Ipayment error: %s"
|
18 |
+
"A failure during payment processing occured. Please try again later.","An failure during payment processing occured. Please try again later."
|
19 |
+
"Checkout session is empty.","Die Bestellprozess-Session ist leer."
|
20 |
+
"Has payment authentication already been processed for this order?","Ist die Zahlungsauthentifizierung für diese Bestellung bereits erfolgt?"
|
21 |
+
"The order has been canceled.","The order has been canceled."
|
22 |
+
"Payment has been preauthorized.","Payment has been preauthorized."
|
23 |
+
"Payment has been authorized and captured.","Payment has been authorized and captured."
|
24 |
+
"Payment preauthorization started.","Payment preauthorization started."
|
25 |
+
"Payment authorization started.","Payment authorization started."
|
26 |
+
"Payment has been captured.","Payment has been captured."
|
27 |
+
"Payment has been refunded.","Payment has been refunded."
|
28 |
+
"Payment has been reversed.","Payment has been reversed."
|
29 |
+
"Failed to refund payment.","Failed to refund payment."
|
30 |
+
"Storage ID is invalid.","Storage ID is invalid."
|
31 |
+
"Can not connect payment service. Please try again later.","Can not connect payment service. Please try again later."
|
32 |
+
"Can not prepare a request for the payment service. Please check your data.","Can not prepare a request for the payment service. Please check your data."
|
33 |
+
"3D-Secure Credit Cards are not allowed with Multiple Addresses Checkout","3D-Secure Credit Cards are not allowed with Multiple Addresses Checkout"
|
34 |
+
"Change credit card information","Change credit card information"
|
35 |
+
"Change bank account information","Change bank account information"
|
36 |
+
"Name on Card","Name on Card"
|
37 |
+
"Credit Card Type","Credit Card Type"
|
38 |
+
"Credit Card Number","Credit Card Number"
|
39 |
+
"Expiration Date","Expiration Date"
|
40 |
+
"What is this?","What is this?"
|
41 |
+
"Name on the Card: %s","Name on the Card: %s"
|
42 |
+
"Credit Card Type: %s","Credit Card Type: %s"
|
43 |
+
"Credit Card Number: xxxx-%s","Credit Card Number: xxxx-%s"
|
44 |
+
"Expiration Date: %s/%s","Expiration Date: %s/%s"
|
45 |
+
"--Please Select--","--Please Select--"
|
46 |
+
"Month","Month"
|
47 |
+
"Year","Year"
|
48 |
+
"Account holder","Account holder"
|
49 |
+
"Bank name","Bank name"
|
50 |
+
"Bank code","Bank code"
|
51 |
+
"Account number","Account number"
|
52 |
+
"Account holder: %s","Account holder: %s"
|
53 |
+
"Bank name: %s","Bank name: %s"
|
54 |
+
"Bank code: %s","Bank code: %s"
|
55 |
+
"Account number: xxx%s","Account number: xxx%s"
|
56 |
+
"Transaction ID: %s","Transaction ID: %s"
|
57 |
+
"Customer was redirected for 3D-Secure payment.","Customer was redirected for 3D-Secure payment."
|
58 |
+
"An error during the credit card processing occured: %s","An error during the credit card processing occured: %s"
|
59 |
+
"Successful 3D-Secure authentication. Status: I. Issuer is authenticated","Successful 3D-Secure authentication. Status: I. Issuer is authenticated"
|
60 |
+
"3D-Secure authentication. Status: U. 3D-Secure not available. Transaction is performed","3D-Secure authentication. Status: U. 3D-Secure not available. Transaction is performed"
|
61 |
+
"3D-Secure authentication. Status: M. Card doesn\'t support 3D-Secure. Transaction is performed","3D-Secure authentication. Status: M. Card doesn\'t support 3D-Secure. Transaction is performed"
|
62 |
+
"3D-Secure authentication. Status: %s. Transaction is performed","3D-Secure authentication. Status: %s. Transaction is performed"
|
63 |
+
"You will be redirected to your bank server in a few seconds.","You will be redirected to your bank server in a few seconds."
|
64 |
+
"An error occured during the payment process: Order not found.","An error occured during the payment process: Order not found."
|
65 |
+
"Error occured","Error occured"
|
66 |
+
"Please <a href=""%s"">continue shopping</a>.","Please <a href=""%s"">continue shopping</a>."
|
67 |
+
"Invoice text","Invoice text"
|
68 |
+
"Use placeholder {{store_name}}, {{order_no}}","Use placeholder {{store_name}}, {{order_no}}"
|
69 |
+
"Enable Test Mode","Enable Test Mode"
|
70 |
+
"Deactivate fraud detection and double transaction checks for development.","Deactivate fraud detection and double transaction checks for development."
|
app/locale/en_US/Phoenix_VarnishCache.csv
DELETED
@@ -1,41 +0,0 @@
|
|
1 |
-
"All content types","All content types"
|
2 |
-
"All stores","All stores"
|
3 |
-
"An error occurred while clearing the Varnish cache.","An error occurred while clearing the Varnish cache."
|
4 |
-
"CSS","CSS"
|
5 |
-
"Clean Varnish Cache","Clean Varnish Cache"
|
6 |
-
"Debug","Debug"
|
7 |
-
"Disable caching","Disable caching"
|
8 |
-
"Disable caching for routes","Disable caching for routes"
|
9 |
-
"Disable caching vars","Disable caching vars"
|
10 |
-
"Domain or IP list separted by semicolon (e.g. host1;127.0.0.1)","Domain or IP list separted by semicolon (e.g. host1;127.0.0.1)"
|
11 |
-
"Enable cache module","Enable cache module"
|
12 |
-
"HTML","HTML"
|
13 |
-
"If you see this message everything is fine.","If you see this message everything is fine."
|
14 |
-
"Images","Images"
|
15 |
-
"JavaScript","JavaScript"
|
16 |
-
"PageCache powered by Varnish version: %s","PageCache powered by Varnish version: %s"
|
17 |
-
"Pass X-headers for debugging purpose to the client and log purge requests to /var/log/varnish_cache.log (ensure developer log is enabled).","Pass X-headers for debugging purpose to the client and log purge requests to /var/log/varnish_cache.log (ensure developer log is enabled)."
|
18 |
-
"Port of the Varnish servers (e.g. 8080)","Port of the Varnish servers (e.g. 8080)"
|
19 |
-
"Remove selected cache items in external Varnish cache.","Remove selected cache items in external Varnish cache."
|
20 |
-
"Request variables that force setting of NO_CACHE cookie to permanent disable caching for visitor.","Request variables that force setting of NO_CACHE cookie to permanent disable caching for visitor."
|
21 |
-
"Server port","Server port"
|
22 |
-
"Set ""no-cache"" HTTP header for certain routes/actions (e.g. checkout, catalog_product_view). Use one per line.","Set ""no-cache"" HTTP header for certain routes/actions (e.g. checkout, catalog_product_view). Use one per line."
|
23 |
-
"Cache TTL for routes","Cache TTL for routes"
|
24 |
-
"Set a TTL of ""0"" for every request","Set a TTL of ""0"" for every request"
|
25 |
-
"TTL for cached pages in seconds for certain routes/actions (e.g. Route:""catalog_product_view"", TTL:""7200"").","TTL for cached pages in seconds for certain routes/actions (e.g. Route:""catalog_product_view"", TTL:""7200"")."
|
26 |
-
"The Varnish cache has been cleaned.","The Varnish cache has been cleaned."
|
27 |
-
"TTL for cached pages in seconds (e.g. ""1800"" = page cache is valid for 30 minutes).","TTL for cached pages in seconds (e.g. ""1800"" = page cache is valid for 30 minutes)."
|
28 |
-
"The catalog image cache has been cleaned on the Varnish servers.","The catalog image cache has been cleaned on the Varnish servers."
|
29 |
-
"PageCache powered by Varnish settings","PageCache powered by Varnish settings"
|
30 |
-
"Varnish servers","Varnish servers"
|
31 |
-
"Purge category","Purge category"
|
32 |
-
"Purge categorie's cache item on save","Purge categorie's cache item on save"
|
33 |
-
"Purge product","Purge product"
|
34 |
-
"Purge product's cache item on save","Purge product's cache item on save"
|
35 |
-
"Purge CMS page","Purge CMS page"
|
36 |
-
"Purge CMS page's cache item on save","Purge CMS page's cache item on save"
|
37 |
-
"Route","Route"
|
38 |
-
"TTL","TTL"
|
39 |
-
"Add route","Add route"
|
40 |
-
"Varnish cache for ""%s"" has been purged.","Varnish cache for ""%s"" has been purged."
|
41 |
-
"Varnish cache for the product's categories has been purged.","Varnish cache for the product's categories has been purged."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/locale/es_ES/Phoenix_VarnishCache.csv
CHANGED
@@ -1,41 +1,48 @@
|
|
|
|
|
|
|
|
1 |
"All content types","Todos los tipos de contenido"
|
2 |
"All stores","Todas las tiendas"
|
3 |
"An error occurred while clearing the Varnish cache.","Ocurrió un error al vaciar Varnish Cache."
|
4 |
"CSS","CSS"
|
|
|
5 |
"Clean Varnish Cache","Vaciar Varnish Cache"
|
6 |
"Debug","Debug"
|
|
|
7 |
"Disable caching","Deshabilitar el almacenamiento en caché"
|
8 |
"Disable caching for routes","Deshabilitar el almacenamiento en caché para rutas"
|
9 |
"Disable caching vars","Deshabilitar el almacenamiento en caché de variable"
|
10 |
"Domain or IP list separted by semicolon (e.g. host1;127.0.0.1)","Lista de dominio o IP separada por punto y coma (por ejemplo,Lista de dominio o IP separada por punto y coma (por ejemplo host1;127.0.0.1)"
|
11 |
"Enable cache module","Habilitar el módulo de caché"
|
12 |
"HTML","HTML"
|
13 |
-
"If you see this message everything is fine.","Si ve este mensaje todo está bien."
|
14 |
"Images","Imágenes"
|
15 |
"JavaScript","JavaScript"
|
16 |
-
"PageCache powered by Varnish
|
|
|
17 |
"Pass X-headers for debugging purpose to the client and log purge requests to /var/log/varnish_cache.log (ensure developer log is enabled).","Pase HTTP X-encabezados para propósitos de depuraciónen al cliente y registre las solicitudes de purge en /var/log/varnish_cache.log (asegúrese de que el registro para desarrolladores está habilitado)."
|
18 |
"Port of the Varnish servers (e.g. 8080)","Puerto de los servidores de Varnish (por ejemplo 8080)"
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
"Remove selected cache items in external Varnish cache.","Quitar los elementos seleccionados de caché en la caché externa Varnish."
|
20 |
"Request variables that force setting of NO_CACHE cookie to permanent disable caching for visitor.","Variables de solicitud que asignan un NO_CACHE cookie para deshabilitar permanente el caché para el visitante."
|
21 |
"Server port","Puerto del servidor"
|
22 |
-
"Set ""
|
23 |
-
"Cache TTL for routes","Cache TTL for routes"
|
24 |
"Set a TTL of ""0"" for every request","Asignar un TTL de ""0"" para todas las solicitudes"
|
25 |
"TTL for cached pages in seconds (e.g. ""1800"" = page cache is valid for 30 minutes).","TTL para las páginas en caché en segundos (por ejemplo, ""1800"" = page cache es válido por 30 minutos)."
|
|
|
26 |
"The JavaScript/CSS cache has been cleaned on the Varnish servers.","JavaScript / CSS caché se ha limpiado en los servidores de Varnish."
|
27 |
"The Varnish cache has been cleaned.","La caché de Varnish se ha limpiado."
|
28 |
"The catalog image cache has been cleaned on the Varnish servers.","El caché de imágenes de catálogo se ha limpiado en los servidores de Varnish."
|
29 |
-
"PageCache powered by Varnish settings","PageCache powered by Varnish configuración"
|
30 |
-
"Varnish servers","Servidores de Varnish"
|
31 |
-
"Purge category","Purgar categoría"
|
32 |
-
"Purge categorie's cache item on save","Purga elemento Categoría de la caché al guardar"
|
33 |
-
"Purge product","Purgar producto"
|
34 |
-
"Purge product's cache item on save","Purgar elemento Producto de la caché al guardar"
|
35 |
-
"Purge CMS page","Purgar página de CMS"
|
36 |
-
"Purge CMS page's cache item on save","Purgar elemento página de CMS de la caché al guardar"
|
37 |
-
"Route","Ruta"
|
38 |
-
"TTL","TTL"
|
39 |
-
"Add route","Añadir ruta"
|
40 |
"Varnish cache for ""%s"" has been purged.","La caché de Varnish de ""%s"" ha sido purgada."
|
41 |
-
"Varnish cache for the product's categories has been purged.","La caché de Varnish para las categorías del producto ha sido purgada."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Add route","Añadir ruta"
|
2 |
+
"Route","Ruta"
|
3 |
+
"TTL","TTL"
|
4 |
"All content types","Todos los tipos de contenido"
|
5 |
"All stores","Todas las tiendas"
|
6 |
"An error occurred while clearing the Varnish cache.","Ocurrió un error al vaciar Varnish Cache."
|
7 |
"CSS","CSS"
|
8 |
+
"Cache TTL for routes","Cache TTL for routes"
|
9 |
"Clean Varnish Cache","Vaciar Varnish Cache"
|
10 |
"Debug","Debug"
|
11 |
+
"Default cache TTL","Default cache TTL"
|
12 |
"Disable caching","Deshabilitar el almacenamiento en caché"
|
13 |
"Disable caching for routes","Deshabilitar el almacenamiento en caché para rutas"
|
14 |
"Disable caching vars","Deshabilitar el almacenamiento en caché de variable"
|
15 |
"Domain or IP list separted by semicolon (e.g. host1;127.0.0.1)","Lista de dominio o IP separada por punto y coma (por ejemplo,Lista de dominio o IP separada por punto y coma (por ejemplo host1;127.0.0.1)"
|
16 |
"Enable cache module","Habilitar el módulo de caché"
|
17 |
"HTML","HTML"
|
|
|
18 |
"Images","Imágenes"
|
19 |
"JavaScript","JavaScript"
|
20 |
+
"PageCache powered by Varnish settings","PageCache powered by Varnish configuración"
|
21 |
+
"PageCache powered by Varnish Community version: %s","PageCache powered by Varnish Community versión: %s"
|
22 |
"Pass X-headers for debugging purpose to the client and log purge requests to /var/log/varnish_cache.log (ensure developer log is enabled).","Pase HTTP X-encabezados para propósitos de depuraciónen al cliente y registre las solicitudes de purge en /var/log/varnish_cache.log (asegúrese de que el registro para desarrolladores está habilitado)."
|
23 |
"Port of the Varnish servers (e.g. 8080)","Puerto de los servidores de Varnish (por ejemplo 8080)"
|
24 |
+
"Purge CMS page","Purgar página de CMS"
|
25 |
+
"Purge CMS page's cache item on save","Purgar elemento página de CMS de la caché al guardar"
|
26 |
+
"Purge categorie's cache item on save","Purga elemento Categoría de la caché al guardar"
|
27 |
+
"Purge category","Purgar categoría"
|
28 |
+
"Purge product","Purgar producto"
|
29 |
+
"Purge product's cache item on save","Purgar elemento Producto de la caché al guardar"
|
30 |
"Remove selected cache items in external Varnish cache.","Quitar los elementos seleccionados de caché en la caché externa Varnish."
|
31 |
"Request variables that force setting of NO_CACHE cookie to permanent disable caching for visitor.","Variables de solicitud que asignan un NO_CACHE cookie para deshabilitar permanente el caché para el visitante."
|
32 |
"Server port","Puerto del servidor"
|
33 |
+
"Set a TTL of ""0"" for certain routes/actions (e.g. checkout, catalog_product_view). Use one per line.","Set a TTL of ""0"" for certain routes/actions (e.g. checkout, catalog_product_view). Use one per line."
|
|
|
34 |
"Set a TTL of ""0"" for every request","Asignar un TTL de ""0"" para todas las solicitudes"
|
35 |
"TTL for cached pages in seconds (e.g. ""1800"" = page cache is valid for 30 minutes).","TTL para las páginas en caché en segundos (por ejemplo, ""1800"" = page cache es válido por 30 minutos)."
|
36 |
+
"TTL for cached pages in seconds for certain routes/actions (e.g. Route:""catalog_product_view"", TTL:""7200"").","TTL for cached pages in seconds for certain routes/actions (e.g. Route:""catalog_product_view"", TTL:""7200"")."
|
37 |
"The JavaScript/CSS cache has been cleaned on the Varnish servers.","JavaScript / CSS caché se ha limpiado en los servidores de Varnish."
|
38 |
"The Varnish cache has been cleaned.","La caché de Varnish se ha limpiado."
|
39 |
"The catalog image cache has been cleaned on the Varnish servers.","El caché de imágenes de catálogo se ha limpiado en los servidores de Varnish."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
"Varnish cache for ""%s"" has been purged.","La caché de Varnish de ""%s"" ha sido purgada."
|
41 |
+
"Varnish cache for the product's categories has been purged.","La caché de Varnish para las categorías del producto ha sido purgada."
|
42 |
+
"Varnish servers","Servidores de Varnish"
|
43 |
+
"Quick Purge","Quick Purge"
|
44 |
+
"Ban URL in Varnish Cache.","Ban URL in Varnish Cache."
|
45 |
+
"Invalid URL ""%s"".","Invalid URL ""%s""."
|
46 |
+
"Invalid domain ""%s"".","Invalid domain ""%s""."
|
47 |
+
"The URL's ""%s"" cache has been cleaned.","The URL's ""%s"" cache has been cleaned."
|
48 |
+
"Update Varnish VCL with design exceptions by using the following snippet:","Update Varnish VCL with design exceptions by using the following snippet:"
|
app/locale/fr_FR/Phoenix_VarnishCache.csv
CHANGED
@@ -1,41 +1,48 @@
|
|
|
|
|
|
|
|
1 |
"All content types","All content types"
|
2 |
"All stores","All stores"
|
3 |
"An error occurred while clearing the Varnish cache.","An error occurred while clearing the Varnish cache."
|
4 |
"CSS","CSS"
|
|
|
5 |
"Clean Varnish Cache","Clean Varnish Cache"
|
6 |
"Debug","Debug"
|
|
|
7 |
"Disable caching","Disable caching"
|
8 |
"Disable caching for routes","Disable caching for routes"
|
9 |
"Disable caching vars","Disable caching vars"
|
10 |
"Domain or IP list separted by semicolon (e.g. host1;127.0.0.1)","Domain or IP list separted by semicolon (e.g. host1;127.0.0.1)"
|
11 |
"Enable cache module","Enable cache module"
|
12 |
"HTML","HTML"
|
13 |
-
"If you see this message everything is fine.","If you see this message everything is fine."
|
14 |
"Images","Images"
|
15 |
"JavaScript","JavaScript"
|
16 |
-
"PageCache powered by Varnish
|
|
|
17 |
"Pass X-headers for debugging purpose to the client and log purge requests to /var/log/varnish_cache.log (ensure developer log is enabled).","Pass X-headers for debugging purpose to the client and log purge requests to /var/log/varnish_cache.log (ensure developer log is enabled)."
|
18 |
"Port of the Varnish servers (e.g. 8080)","Port of the Varnish servers (e.g. 8080)"
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
"Remove selected cache items in external Varnish cache.","Remove selected cache items in external Varnish cache."
|
20 |
"Request variables that force setting of NO_CACHE cookie to permanent disable caching for visitor.","Request variables that force setting of NO_CACHE cookie to permanent disable caching for visitor."
|
21 |
"Server port","Server port"
|
22 |
-
"Set ""
|
23 |
-
"Cache TTL for routes","Cache TTL for routes"
|
24 |
"Set a TTL of ""0"" for every request","Set un TTL ""0"" pour toutes les applications"
|
|
|
25 |
"TTL for cached pages in seconds for certain routes/actions (e.g. Route:""catalog_product_view"", TTL:""7200"").","TTL for cached pages in seconds for certain routes/actions (e.g. Route:""catalog_product_view"", TTL:""7200"")."
|
26 |
"The JavaScript/CSS cache has been cleaned on the Varnish servers.","The JavaScript/CSS cache has been cleaned on the Varnish servers."
|
27 |
"The Varnish cache has been cleaned.","The Varnish cache has been cleaned."
|
28 |
"The catalog image cache has been cleaned on the Varnish servers.","The catalog image cache has been cleaned on the Varnish servers."
|
29 |
-
"PageCache powered by Varnish settings","PageCache powered by Varnish settings"
|
30 |
-
"Varnish servers","Varnish servers"
|
31 |
-
"Purge category","Purger la catégorie"
|
32 |
-
"Purge categorie's cache item on save","Purger l'élément du cache categorie sur Enregistrer"
|
33 |
-
"Purge product","Purger produit"
|
34 |
-
"Purge product's cache item on save","Purger l'élément du cache de produits sur Enregistrer"
|
35 |
-
"Purge CMS page","Purger la page CMS"
|
36 |
-
"Purge CMS page's cache item on save","Élément du cache Purge CMS page sur Enregistrer"
|
37 |
-
"Route","Route"
|
38 |
-
"TTL","TTL"
|
39 |
-
"Add route","Ajouter un route"
|
40 |
"Varnish cache for ""%s"" has been purged.","Varnish cache pour ""%s"" a été purgé."
|
41 |
-
"Varnish cache for the product's categories has been purged.","Varnish cache pour les catégories de produit a été purgé."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Add route","Ajouter un route"
|
2 |
+
"Route","Route"
|
3 |
+
"TTL","TTL"
|
4 |
"All content types","All content types"
|
5 |
"All stores","All stores"
|
6 |
"An error occurred while clearing the Varnish cache.","An error occurred while clearing the Varnish cache."
|
7 |
"CSS","CSS"
|
8 |
+
"Cache TTL for routes","Cache TTL for routes"
|
9 |
"Clean Varnish Cache","Clean Varnish Cache"
|
10 |
"Debug","Debug"
|
11 |
+
"Default cache TTL","Default cache TTL"
|
12 |
"Disable caching","Disable caching"
|
13 |
"Disable caching for routes","Disable caching for routes"
|
14 |
"Disable caching vars","Disable caching vars"
|
15 |
"Domain or IP list separted by semicolon (e.g. host1;127.0.0.1)","Domain or IP list separted by semicolon (e.g. host1;127.0.0.1)"
|
16 |
"Enable cache module","Enable cache module"
|
17 |
"HTML","HTML"
|
|
|
18 |
"Images","Images"
|
19 |
"JavaScript","JavaScript"
|
20 |
+
"PageCache powered by Varnish settings","PageCache powered by Varnish settings"
|
21 |
+
"PageCache powered by Varnish Community version: %s","PageCache powered by Varnish Community version: %s"
|
22 |
"Pass X-headers for debugging purpose to the client and log purge requests to /var/log/varnish_cache.log (ensure developer log is enabled).","Pass X-headers for debugging purpose to the client and log purge requests to /var/log/varnish_cache.log (ensure developer log is enabled)."
|
23 |
"Port of the Varnish servers (e.g. 8080)","Port of the Varnish servers (e.g. 8080)"
|
24 |
+
"Purge CMS page","Purger la page CMS"
|
25 |
+
"Purge CMS page's cache item on save","Élément du cache Purge CMS page sur Enregistrer"
|
26 |
+
"Purge categorie's cache item on save","Purger l'élément du cache categorie sur Enregistrer"
|
27 |
+
"Purge category","Purger la catégorie"
|
28 |
+
"Purge product","Purger produit"
|
29 |
+
"Purge product's cache item on save","Purger l'élément du cache de produits sur Enregistrer"
|
30 |
"Remove selected cache items in external Varnish cache.","Remove selected cache items in external Varnish cache."
|
31 |
"Request variables that force setting of NO_CACHE cookie to permanent disable caching for visitor.","Request variables that force setting of NO_CACHE cookie to permanent disable caching for visitor."
|
32 |
"Server port","Server port"
|
33 |
+
"Set a TTL of ""0"" for certain routes/actions (e.g. checkout, catalog_product_view). Use one per line.","Set a TTL of ""0"" for certain routes/actions (e.g. checkout, catalog_product_view). Use one per line."
|
|
|
34 |
"Set a TTL of ""0"" for every request","Set un TTL ""0"" pour toutes les applications"
|
35 |
+
"TTL for cached pages in seconds (e.g. ""1800"" = page cache is valid for 30 minutes).","TTL for cached pages in seconds (e.g. ""1800"" = page cache is valid for 30 minutes)."
|
36 |
"TTL for cached pages in seconds for certain routes/actions (e.g. Route:""catalog_product_view"", TTL:""7200"").","TTL for cached pages in seconds for certain routes/actions (e.g. Route:""catalog_product_view"", TTL:""7200"")."
|
37 |
"The JavaScript/CSS cache has been cleaned on the Varnish servers.","The JavaScript/CSS cache has been cleaned on the Varnish servers."
|
38 |
"The Varnish cache has been cleaned.","The Varnish cache has been cleaned."
|
39 |
"The catalog image cache has been cleaned on the Varnish servers.","The catalog image cache has been cleaned on the Varnish servers."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
"Varnish cache for ""%s"" has been purged.","Varnish cache pour ""%s"" a été purgé."
|
41 |
+
"Varnish cache for the product's categories has been purged.","Varnish cache pour les catégories de produit a été purgé."
|
42 |
+
"Varnish servers","Varnish servers"
|
43 |
+
"Quick Purge","Quick Purge"
|
44 |
+
"Ban URL in Varnish Cache.","Ban URL in Varnish Cache."
|
45 |
+
"Invalid URL ""%s"".","Invalid URL ""%s""."
|
46 |
+
"Invalid domain ""%s"".","Invalid domain ""%s""."
|
47 |
+
"The URL's ""%s"" cache has been cleaned.","The URL's ""%s"" cache has been cleaned."
|
48 |
+
"Update Varnish VCL with design exceptions by using the following snippet:","Update Varnish VCL with design exceptions by using the following snippet:"
|
app/locale/nb_NO/Phoenix_VarnishCache.csv
CHANGED
@@ -1,41 +1,48 @@
|
|
|
|
|
|
|
|
1 |
"All content types","Alle typer innhold"
|
2 |
"All stores","Alle butikker"
|
3 |
"An error occurred while clearing the Varnish cache.","En feil oppstod under tømming av Varnish cache."
|
4 |
"CSS","CSS"
|
|
|
5 |
"Clean Varnish Cache","Tøm Varnish Cache"
|
6 |
"Debug","Debug"
|
|
|
7 |
"Disable caching","Deaktiver caching"
|
8 |
"Disable caching for routes","Deaktiver caching for ruter"
|
9 |
"Disable caching vars","Deaktiver caching vars"
|
10 |
"Domain or IP list separted by semicolon (e.g. host1;127.0.0.1)","Domene eller IP listen separert med semikolon (f.eks host1;127.0.0.1)"
|
11 |
"Enable cache module","Aktiver cache modulen"
|
12 |
"HTML","HTML"
|
13 |
-
"If you see this message everything is fine.","Hvis du ser denne meldingen er alt fint."
|
14 |
"Images","Bilder"
|
15 |
"JavaScript","JavaScript"
|
16 |
-
"PageCache powered by Varnish
|
|
|
17 |
"Pass X-headers for debugging purpose to the client and log purge requests to /var/log/varnish_cache.log (ensure developer log is enabled).","Pass HTTP X-headere for debugging formål til klienten og logg purge forespørsler til /var/log/varnish_cache.log (husk å sikre at utvikleren loggen er aktivert)."
|
18 |
"Port of the Varnish servers (e.g. 8080)","Porten for Varnish-servere (f.eks. 8080)"
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
"Remove selected cache items in external Varnish cache.","Fjern valgte cache elementer i den eksterne Varnish cache."
|
20 |
"Request variables that force setting of NO_CACHE cookie to permanent disable caching for visitor.","Forerspørsel variabler som setter en NO_CACHE cookie for å å deaktivere permanent caching for besøkende."
|
21 |
"Server port","Server port"
|
22 |
-
"Set ""
|
23 |
"Set a TTL of ""0"" for every request","Sett en TTL på ""0"" for hver forespørsel"
|
24 |
-
"
|
25 |
-
"TTL for cached pages in seconds (e.g. ""
|
26 |
"The JavaScript/CSS cache has been cleaned on the Varnish servers.","JavaScript/CSS cache har blitt tomt på Varnish servere."
|
27 |
"The Varnish cache has been cleaned.","Varnish cache har blitt tomt."
|
28 |
"The catalog image cache has been cleaned on the Varnish servers.","Katalog bilder cache har blitt tomt på Varnish servere."
|
29 |
-
"PageCache powered by Varnish settings","PageCache powered by Varnish innstillinger"
|
30 |
-
"Varnish servers","Varnish-servere"
|
31 |
-
"Purge category","Tomme kategorien"
|
32 |
-
"Purge categorie's cache item on save","Tøm Cache-Element kategori ved lagring"
|
33 |
-
"Purge product","Tøm produkt"
|
34 |
-
"Purge product's cache item on save","Tøm Cache-Element produkt ved lagring"
|
35 |
-
"Purge CMS page","Tøm CMS side"
|
36 |
-
"Purge CMS page's cache item on save","Tøm buffer element av CMS side ved lagring"
|
37 |
-
"Route","Rute"
|
38 |
-
"TTL","TTL"
|
39 |
-
"Add route","Legg rute"
|
40 |
"Varnish cache for ""%s"" has been purged.","Varnish cache for "% s" har blitt tømt."
|
41 |
-
"Varnish cache for the product's categories has been purged.","Varnish cache av produktets kategorier har blitt tømt."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Add route","Legg rute"
|
2 |
+
"Route","Rute"
|
3 |
+
"TTL","TTL"
|
4 |
"All content types","Alle typer innhold"
|
5 |
"All stores","Alle butikker"
|
6 |
"An error occurred while clearing the Varnish cache.","En feil oppstod under tømming av Varnish cache."
|
7 |
"CSS","CSS"
|
8 |
+
"Cache TTL for routes","Cache TTL for routes"
|
9 |
"Clean Varnish Cache","Tøm Varnish Cache"
|
10 |
"Debug","Debug"
|
11 |
+
"Default cache TTL","Default cache TTL"
|
12 |
"Disable caching","Deaktiver caching"
|
13 |
"Disable caching for routes","Deaktiver caching for ruter"
|
14 |
"Disable caching vars","Deaktiver caching vars"
|
15 |
"Domain or IP list separted by semicolon (e.g. host1;127.0.0.1)","Domene eller IP listen separert med semikolon (f.eks host1;127.0.0.1)"
|
16 |
"Enable cache module","Aktiver cache modulen"
|
17 |
"HTML","HTML"
|
|
|
18 |
"Images","Bilder"
|
19 |
"JavaScript","JavaScript"
|
20 |
+
"PageCache powered by Varnish settings","PageCache powered by Varnish innstillinger"
|
21 |
+
"PageCache powered by Varnish Community version: %s","PageCache powered by Varnish Community versjon: %s"
|
22 |
"Pass X-headers for debugging purpose to the client and log purge requests to /var/log/varnish_cache.log (ensure developer log is enabled).","Pass HTTP X-headere for debugging formål til klienten og logg purge forespørsler til /var/log/varnish_cache.log (husk å sikre at utvikleren loggen er aktivert)."
|
23 |
"Port of the Varnish servers (e.g. 8080)","Porten for Varnish-servere (f.eks. 8080)"
|
24 |
+
"Purge CMS page","Tøm CMS side"
|
25 |
+
"Purge CMS page's cache item on save","Tøm buffer element av CMS side ved lagring"
|
26 |
+
"Purge categorie's cache item on save","Tøm Cache-Element kategori ved lagring"
|
27 |
+
"Purge category","Tomme kategorien"
|
28 |
+
"Purge product","Tøm produkt"
|
29 |
+
"Purge product's cache item on save","Tøm Cache-Element produkt ved lagring"
|
30 |
"Remove selected cache items in external Varnish cache.","Fjern valgte cache elementer i den eksterne Varnish cache."
|
31 |
"Request variables that force setting of NO_CACHE cookie to permanent disable caching for visitor.","Forerspørsel variabler som setter en NO_CACHE cookie for å å deaktivere permanent caching for besøkende."
|
32 |
"Server port","Server port"
|
33 |
+
"Set a TTL of ""0"" for certain routes/actions (e.g. checkout, catalog_product_view). Use one per line.","Set a TTL of ""0"" for certain routes/actions (e.g. checkout, catalog_product_view). Use one per line."
|
34 |
"Set a TTL of ""0"" for every request","Sett en TTL på ""0"" for hver forespørsel"
|
35 |
+
"TTL for cached pages in seconds (e.g. ""1800"" = page cache is valid for 30 minutes).","TTL for cached pages in seconds (e.g. ""1800"" = page cache is valid for 30 minutes)."
|
36 |
+
"TTL for cached pages in seconds for certain routes/actions (e.g. Route:""catalog_product_view"", TTL:""7200"").","TTL for cached pages in seconds for certain routes/actions (e.g. Route:""catalog_product_view"", TTL:""7200"")."
|
37 |
"The JavaScript/CSS cache has been cleaned on the Varnish servers.","JavaScript/CSS cache har blitt tomt på Varnish servere."
|
38 |
"The Varnish cache has been cleaned.","Varnish cache har blitt tomt."
|
39 |
"The catalog image cache has been cleaned on the Varnish servers.","Katalog bilder cache har blitt tomt på Varnish servere."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
"Varnish cache for ""%s"" has been purged.","Varnish cache for "% s" har blitt tømt."
|
41 |
+
"Varnish cache for the product's categories has been purged.","Varnish cache av produktets kategorier har blitt tømt."
|
42 |
+
"Varnish servers","Varnish-servere"
|
43 |
+
"Quick Purge","Quick Purge"
|
44 |
+
"Ban URL in Varnish Cache.","Ban URL in Varnish Cache."
|
45 |
+
"Invalid URL ""%s"".","Invalid URL ""%s""."
|
46 |
+
"Invalid domain ""%s"".","Invalid domain ""%s""."
|
47 |
+
"The URL's ""%s"" cache has been cleaned.","The URL's ""%s"" cache has been cleaned."
|
48 |
+
"Update Varnish VCL with design exceptions by using the following snippet:","Update Varnish VCL with design exceptions by using the following snippet:"
|
package.xml
CHANGED
@@ -1,24 +1,28 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Varnish_Cache</name>
|
4 |
-
<version>3.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Certified module to integrate Magento and Varnish that makes your eCommerce site fly</summary>
|
10 |
-
<description><p><span>Make your Magento store fly - with transparently integrated <a href="http://www.varnish-cache.org">Varnish Cache</a>! Blazing fast response times and lower server load during peak times making your Magento store 100x faster.</span></p>
|
11 |
-
<p><span>The PageCache module allows you to control your Varnish Cache instance from the Magento backend to trigger purge requests for single stores or content types. It also prevents caching of store pages containing customer information like shopping carts or logins.</span></p>
|
12 |
-
<p><span>No more worries about huge marketing campaigns or maniac crawlers: Varnish Cache will mitigate any peaks so your Magento store can care about the buyers and transactions!</span></p>
|
13 |
-
<p><strong>The PageCache module has been architectural certified by Varnish Software to ensure highest quality and reliability for Magento stores.</strong></p>
|
14 |
-
<p> </p>
|
15 |
-
<p><strong>Features:</strong></p>
|
16 |
<p>- Allows <strong>full page caching</strong> of Magento store frontends with <a href="http://www.varnish-cache.org" target="_blank">Varnish</a><br />- Prevent caching of pages containing custom information (shopping carts, logins)<br />- Configure request paths (controller, action) to be excluded from caching<br />- Clean caches for single store views or content types<br />- Maintain several Varnish instances from the Magento backend<br />- Set TTL for content pages per store view<br />- Deactivate Varnish cache for single store views or websites<br />- Easily deactivate caching for certain Magento modules<br />- Enable debug mode to analyse any issues<br /><strong>- Ready to go Varnish configuration file (VCL)</strong></p></description>
|
17 |
-
<notes>-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
22 |
<compatible/>
|
23 |
<dependencies/>
|
24 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Varnish_Cache</name>
|
4 |
+
<version>3.1.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Certified module to integrate Magento and Varnish that makes your eCommerce site fly</summary>
|
10 |
+
<description><p><span>Make your Magento store fly - with transparently integrated <a href="http://www.varnish-cache.org">Varnish Cache</a>! Blazing fast response times and lower server load during peak times making your Magento store 100x faster.</span></p>
|
11 |
+
<p><span>The PageCache module allows you to control your Varnish Cache instance from the Magento backend to trigger purge requests for single stores or content types. It also prevents caching of store pages containing customer information like shopping carts or logins.</span></p>
|
12 |
+
<p><span>No more worries about huge marketing campaigns or maniac crawlers: Varnish Cache will mitigate any peaks so your Magento store can care about the buyers and transactions!</span></p>
|
13 |
+
<p><strong>The PageCache module has been architectural certified by Varnish Software to ensure highest quality and reliability for Magento stores.</strong></p>
|
14 |
+
<p> </p>
|
15 |
+
<p><strong>Features:</strong></p>
|
16 |
<p>- Allows <strong>full page caching</strong> of Magento store frontends with <a href="http://www.varnish-cache.org" target="_blank">Varnish</a><br />- Prevent caching of pages containing custom information (shopping carts, logins)<br />- Configure request paths (controller, action) to be excluded from caching<br />- Clean caches for single store views or content types<br />- Maintain several Varnish instances from the Magento backend<br />- Set TTL for content pages per store view<br />- Deactivate Varnish cache for single store views or websites<br />- Easily deactivate caching for certain Magento modules<br />- Enable debug mode to analyse any issues<br /><strong>- Ready to go Varnish configuration file (VCL)</strong></p></description>
|
17 |
+
<notes>- Added "Quick Purge" to clean Varnish Cache for a certain URL pattern
|
18 |
+
- Show VCL snippet for design exception after saving
|
19 |
+
- Added separate admin backend in VCL with longer timeout values
|
20 |
+
- Normalize URL in case of leading HTTP scheme and domain in VCL
|
21 |
+
- Fixed issues where redirects are cached by mistake</notes>
|
22 |
+
<authors><author><name>PHOENIX MEDIA</name><user>auto-converted</user><email>info@phoenix-media.eu</email></author></authors>
|
23 |
+
<date>2012-03-28</date>
|
24 |
+
<time>12:18:40</time>
|
25 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="varnishcache.xml" hash="725d3a556fed745432a0b21211f94445"/></dir><dir name="template"><dir name="varnishcache"><dir name="cache"><file name="additional.phtml" hash="0f54ed49216db497af80d9346a30e56f"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="Phoenix_VarnishCache.csv" hash="4d6de682679535c4e7da0b170dc52ccc"/></dir><dir name="en_US"><file name="Phoenix_Ipayment.csv" hash="40920b14dddc34a37ac337fcffdfed8b"/></dir><dir name="es_ES"><file name="Phoenix_VarnishCache.csv" hash="ca0f672444729ab4aa4f6e5d47820993"/></dir><dir name="fr_FR"><file name="Phoenix_VarnishCache.csv" hash="b236d7c417799e51539d969fba83aa3c"/></dir><dir name="nb_NO"><file name="Phoenix_VarnishCache.csv" hash="6686c016a2fe102039ee42f8fa089741"/></dir></target><target name="mageetc"><dir name="modules"><file name="Phoenix_VarnishCache.xml" hash="c0cb1af3afbf3032bd698b86d573024a"/></dir><dir name="."><file name="varnishcache.xml" hash="6e82b92c07b252822756886ee937ae51"/></dir></target><target name="magecommunity"><dir name="Phoenix"><dir name="VarnishCache"><dir name="Block"><dir name="Adminhtml"><dir name="Cache"><file name="Additional.php" hash="0e72e8dd9aec2070ae20f8bd6bdf7816"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="RouteTTL.php" hash="6d591c078198f0d342b795b79eda2d91"/><file name="Versioninfo.php" hash="0e8299c1ba8fd0348174ba02048662e4"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="VarnishCacheController.php" hash="f197d6daedb03d0820ad072a7e62de3d"/></dir></dir><dir name="etc"><file name="config.xml" hash="fc5b29a40978895f88ede3d38b2af526"/><file name="default_2.1.vcl" hash="e90cdef222e99ffb80c116f44abb449b"/><file name="default_3.0.vcl" hash="9c16905fd8706a84216f91046688c3d4"/><file name="system.xml" hash="616f3070a0e6212bb505a5b8bd62c6ad"/></dir><dir name="Helper"><dir name="Control"><dir name="Catalog"><file name="Category.php" hash="2ba4aaafda525141987e0894b089879c"/><file name="Product.php" hash="d8dc4dc06d92b8bf896e91d5bbc11c0d"/></dir><dir name="Cms"><file name="Page.php" hash="01ca826c806859726574d7188b1bd754"/></dir></dir><file name="Cache.php" hash="0d4890e06bcc68ff7db3f89e8fe48172"/><file name="Data.php" hash="4ac37fb307d05aadd42cf05e2673cbb6"/></dir><dir name="Model"><dir name="Catalog"><dir name="Category"><file name="Product.php" hash="44c7d3b544544b310d2a68a5f4aaf177"/></dir><dir name="Product"><file name="Relation.php" hash="0ffb10b622f4b4d9ed584d10a2c455ae"/></dir></dir><dir name="Cms"><dir name="Page"><file name="Store.php" hash="e04635d3fb1bb587fd48114194c9c171"/></dir></dir><dir name="Control"><dir name="Catalog"><file name="Category.php" hash="be957c59f9979a6494b3e5d3034775ac"/><file name="Product.php" hash="93e59cfdf6d898b5e78c4e76a0efb9b0"/></dir><dir name="Cms"><file name="Page.php" hash="54c609d4e9b00ae932b9f7dad4dd67d2"/></dir><file name="Abstract.php" hash="06938bac8960ec9fecfbffe21d6f57a2"/></dir><dir name="Resource"><dir name="Mysql4"><dir name="Catalog"><dir name="Category"><dir name="Product"><file name="Collection.php" hash="7771f72aa34a7e28dc426e9faa7b5fb3"/></dir><file name="Product.php" hash="3875dba8519f066fd5f92d3016bb5fa4"/></dir><dir name="Product"><dir name="Relation"><file name="Collection.php" hash="60afbdd7f279988f2aa47a586522974f"/></dir></dir></dir><dir name="Cms"><dir name="Page"><dir name="Store"><file name="Collection.php" hash="29cc41a3c125f96779385c76a5259985"/></dir><file name="Store.php" hash="d6ef1287d849696b0ca47efd48ce68d3"/></dir></dir><dir name="Core"><dir name="Url"><dir name="Rewrite"><file name="Collection.php" hash="6700fea35edc38a28ddc5c3e61fe9c74"/></dir></dir></dir></dir></dir><file name="Control.php" hash="ca487929a174f7dc43396276c306bc49"/><file name="Observer.php" hash="aca6e81a602716478098b04f994b8e3c"/><file name="Processor.php" hash="7a06a7dd589b969f7b3029c70c876bae"/></dir></dir></dir></target><target name="mage"><dir name="."><file name="README_VARNISH_CACHE.txt" hash="524a968a0a8ee59f87f5b3f5578546eb"/></dir></target></contents>
|
26 |
<compatible/>
|
27 |
<dependencies/>
|
28 |
</package>
|