Skip to content

Commit 4192618

Browse files
author
Rafael Grigorian
committed
Fixed GH-20
1 parent 817ffc4 commit 4192618

File tree

31 files changed

+73
-48
lines changed

31 files changed

+73
-48
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,7 @@
2727

2828
## Version 1.1.6
2929
- Fixed GH-15, added module version and combines auto-purge messages
30-
- Fixed GH-18, Auto-purge loops through store views on "all store view" scope
30+
- Fixed GH-18, auto-purge loops through store views on "all store view" scope
31+
32+
## Version 1.1.7
33+
- Fixed GH-20, Varnish trademark compliance

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Magento 2 - Varnish
2-
> Magento 2 extension which interfaces with the Varnish caching application in order to manage it through the Magento backend.
2+
> Magento 2 extension which interfaces with the Varnish® caching application in order to manage it through the Magento backend.
33
44
![](https://img.shields.io/badge/License-MIT-lightgrey.svg?style=for-the-badge)
5-
![](https://img.shields.io/badge/Version-1.1.6-lightgrey.svg?style=for-the-badge)
5+
![](https://img.shields.io/badge/Version-1.1.7-lightgrey.svg?style=for-the-badge)
66
![](https://img.shields.io/badge/Stability-Stable-lightgrey.svg?style=for-the-badge)
77

88
<p align="center" >
@@ -11,7 +11,7 @@
1111

1212
## About
1313

14-
This module helps manage varnish cache for your Magento 2 store. It supports a multiple varnish server configuration. Purge requests can be sent to all these servers in order to purge a specific URL, a whole store view, or simply to purge all the cache that is contained in said varnish server. Additionally, the purge process can be executed automatically on product or CMS page save. Cache exclusion rules can be set to not cache paths or Magento routes. Finally, there exists a _debug_ mode that will display if Varnish FPC was used in loading the page and which exclusion rules should be blamed if the page is excluded.
14+
This module helps manage varnish Cache™ for your Magento 2 store. It supports a multiple varnish server configuration. Purge requests can be sent to all these servers in order to purge a specific URL, a whole store view, or simply to purge all the cache that is contained in said varnish server. Additionally, the purge process can be executed automatically on product or CMS page save. Cache exclusion rules can be set to not cache paths or Magento routes. Finally, there exists a _debug_ mode that will display if Varnish FPC was used in loading the page and which exclusion rules should be blamed if the page is excluded.
1515

1616
## Documentation
1717

@@ -26,9 +26,13 @@ All JetRails® modules use __Grunt__ as a build system. Grunt is a package that
2626
| `version` | Updates the version number in all __php__ and __xml__ files with the one defined in __package.json__. |
2727
| `release` | This command first runs __init__ and then __resolve__. It then compresses the source and dependencies and outputs the archive in __dist__. This command gets the repo ready for a git commit. |
2828
| `deploy` | Will upload dependencies and source code to a staging server. Credentials to this server can be configured in the __package.json__ file under the _staging_ attribute. |
29-
| `stream` | Will watch the __lib__ and __src__ folders for any changes. Once a change occurs it will run the __deploy__ task. |
29+
| `watch` | Will watch the __src__ folder for any changes. Once a change occurs it will run the __deploy__ task. |
3030
| | The default task is aliased to run the __release__ task. |
3131

3232
## Docker Environment
3333

3434
This project comes with a [docker-compose.yml](docker-compose.yml) file as well as a [docker-sync.yml](docker-sync.yml) file, which can be used to spin up a Magento 2 environment. In order to use docker, please make sure you have **Docker**, **Docker Compose**, and **Docker Sync** installed. For information about configuring this docker environment, please refer to it's Github repository which can be found [here](https://github.com/jetrails/docker-magento-alpine).
35+
36+
## Legal Disclaimer
37+
38+
Varnish is a registered trademark of Varnish Software AB and its affiliates.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "jetrails/magento2-varnish",
33
"description": "Magento 2 extension which interfaces with the Varnish caching application in order to manage it through the Magento backend",
44
"type": "magento2-module",
5-
"version": "1.1.6",
5+
"version": "1.1.7",
66
"license": "MIT",
77
"authors": [
88
{

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"version": "1.1.6",
2+
"version": "1.1.7",
33
"name": "magento2-varnish",
4-
"description": "Magento 2 extension which interfaces with the Varnish caching application in order to manage it through the Magento backend",
4+
"description": "Magento 2 extension which interfaces with the Varnish® caching application in order to manage it through the Magento backend.",
55
"author": "Rafael Grigorian",
66
"company": "JetRails®",
77
"license": "MIT",

src/app/code/JetRails/Varnish/Block/Adminhtml/System/Config/Form/Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Link.php - This block alongside the template is used to render a link to the cache management
1010
* page in the magento store backend. This block is also referenced as a frontend model in the
1111
* system.xml file.
12-
* @version 1.1.6
12+
* @version 1.1.7
1313
* @package JetRails® Varnish
1414
* @category Form
1515
* @author Rafael Grigorian - JetRails®

src/app/code/JetRails/Varnish/Console/Command/AbstractCommand.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* is meant to be a buffer between that class and the commands that are implemented in this
1616
* module. Instead of using the execute command, the child classes overload the runCommand
1717
* method.
18-
* @version 1.1.6
18+
* @version 1.1.7
1919
* @package JetRails® Varnish
2020
* @category Status
2121
* @author Rafael Grigorian - JetRails®
@@ -107,14 +107,15 @@ protected function execute ( InputInterface $input, OutputInterface $output ) {
107107
$this->_printLabel ( $output, "Powered By", "The JetRails Team" );
108108
$this->_printLabel ( $output, "Email Us", "[email protected]" );
109109
$this->_printLabel ( $output, "Call Us", "+1 (888) 554-9990" );
110+
$this->_printLabel ( $output, "Disclaimer", "Varnish is a registered trademark of Varnish Software AB and its affiliates." );
110111
$output->writeln ("");
111112
// Check to see if we should run the command if feature is disabled
112113
if ( !$this->_runIfDisabled && !$this->_data->isEnabled () ) {
113114
// Define the return parameters
114115
$status = "unsuccessful";
115-
$message = "Cache application must be set to <options=underscore>Varnish Cache</>";
116+
$message = "Cache application must be set to <options=underscore>Varnish Cache</>";
116117
$payload = "<fg=red>varnish:status:set enable</>";
117-
$payload .= "Run '$payload' to set varnish cache as caching application";
118+
$payload .= "Run '$payload' to set Varnish Cache™ as caching application";
118119
// Set the response object to be the above parameters
119120
$response = ( object ) [
120121
"status" => $status,

src/app/code/JetRails/Varnish/Console/Command/Purge/All.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* All.php - This class inherits from the AbstractCommand. This command contacts all the
1010
* configured varnish cache servers and asks them to flush all the cache for all urls.
11-
* @version 1.1.6
11+
* @version 1.1.7
1212
* @package JetRails® Varnish
1313
* @category Purge
1414
* @author Rafael Grigorian - JetRails®

src/app/code/JetRails/Varnish/Console/Command/Purge/Store.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* servers that start with the store view's base url. If no argument is passed, then a list of
1313
* store views along with their base url, id, and name is displayed in the payload of the
1414
* response.
15-
* @version 1.1.6
15+
* @version 1.1.7
1616
* @package JetRails® Varnish
1717
* @category Purge
1818
* @author Rafael Grigorian - JetRails®
@@ -53,7 +53,7 @@ private function _findStoreViewById ( $storeViews, $id ) {
5353
protected function configure () {
5454
// Register the command and set the arguments
5555
$this->setName ("varnish:purge:store")
56-
->setDescription ("Purge varnish cache based on store view")
56+
->setDescription ("Purge Varnish Cache™ based on store view")
5757
->addArgument ( "store", InputArgument::OPTIONAL, "Store view id to purge" );
5858
}
5959

src/app/code/JetRails/Varnish/Console/Command/Purge/Url.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* Url.php - This class inherits from the AbstractCommand. This command takes in a url and asks
1212
* all the saved varnish servers a request to purge the passed url from cache.
13-
* @version 1.1.6
13+
* @version 1.1.7
1414
* @package JetRails® Varnish
1515
* @category Purge
1616
* @author Rafael Grigorian - JetRails®
@@ -35,7 +35,7 @@ class Url extends AbstractCommand {
3535
protected function configure () {
3636
// Register the command and set the arguments
3737
$this->setName ("varnish:purge:url")
38-
->setDescription ("Purge specific url from varnish cache")
38+
->setDescription ("Purge specific url from Varnish Cache™")
3939
->addArgument ( "url", InputArgument::REQUIRED, "What URL do you want to purge?" )
4040
->addOption ( "substring", null, InputOption::VALUE_NONE, "Purge all URLs that contain the given URL" );
4141
}

src/app/code/JetRails/Varnish/Console/Command/Status.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Status.php - This class inherits from the AbstractCommand. This command tells the user if
1010
* the module is enabled. In the sense that the 'Caching Application' setting is set to
1111
* 'Varnish Cache', and not 'Built-in Cache'.
12-
* @version 1.1.6
12+
* @version 1.1.7
1313
* @package JetRails® Varnish
1414
* @category Command
1515
* @author Rafael Grigorian - JetRails®
@@ -39,8 +39,8 @@ protected function configure () {
3939
protected function runCommand ( InputInterface $input ) {
4040
// Check to see if varnish caching is enabled and prepare message
4141
$status = $this->_data->isEnabled ();
42-
$message = $status ? "Varnish" : "Built-in";
43-
$message = "<options=underscore>$message Cache</>";
42+
$message = $status ? "Varnish Cache™" : "Built-in Cache";
43+
$message = "<options=underscore>$message</>";
4444
$message = "Caching application is set to $message";
4545
// Return the message and status to caller
4646
return [ "status" => $status, "message" => $message ];

0 commit comments

Comments
 (0)