Skip to content

Release rtcamp merge #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 100 commits into
base: release
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
1e59e75
Merge pull request #294 from rtCamp/feature/skip-feeds-option
Pathan-Amaankhan Apr 5, 2024
3a3cf81
Merge pull request #334 from rtCamp/fix/GH-333
Pathan-Amaankhan Apr 15, 2024
fb4a5d6
Merge pull request #336 from rtCamp/release/2.2.5
Pathan-Amaankhan Apr 16, 2024
d853df3
feat: disable purge all for import request.
Vedant-Gandhi Aug 8, 2024
ac53b89
refactor: remove extra spaces.
Vedant-Gandhi Aug 8, 2024
be1d0f7
feat: add contribution name.
Vedant-Gandhi Aug 8, 2024
e56078b
fix: phpcs errors.
Vedant-Gandhi Aug 9, 2024
a166c1f
feat: add disable purge.
Vedant-Gandhi Aug 9, 2024
7483a8d
refactor: add proper spacing.
Vedant-Gandhi Aug 9, 2024
6931938
Merge pull request #347 from rtCamp/feature/disable-purge-on-import
Vedant-Gandhi Aug 12, 2024
55a5631
feat: add filter to set the cache path for nginx.
Vedant-Gandhi Aug 20, 2024
367d97c
feat: add input element to accept redis database.
Vedant-Gandhi Sep 5, 2024
14eca80
feat: add database while connecting to redis.
Vedant-Gandhi Sep 5, 2024
8c58de3
feat: modify the redis database selection.
Vedant-Gandhi Sep 5, 2024
2258c1a
feat: add acl support for redis.
Vedant-Gandhi Sep 5, 2024
e489543
feat: add unix socket.
Vedant-Gandhi Sep 6, 2024
c30a622
remove: extra filters.
Vedant-Gandhi Sep 6, 2024
914dccf
feat: add purging for amp urls.
Vedant-Gandhi Sep 6, 2024
c2a1416
refactor: fix indentation.
Vedant-Gandhi Sep 6, 2024
a3dcc70
feat: add function to store default options.
Vedant-Gandhi Sep 19, 2024
3831003
feat: add invocation for default options.
Vedant-Gandhi Sep 19, 2024
8befd18
feat: add general options.
Vedant-Gandhi Sep 25, 2024
c1198f0
feat: add cache preload.
Vedant-Gandhi Sep 26, 2024
9d6d117
feat: tag the preload cache on admin_init action.
Vedant-Gandhi Sep 26, 2024
204fb8d
feat: change the timeout for sitemap fetch.
Vedant-Gandhi Sep 26, 2024
c1ae711
Merge branch 'develop' into feat/preload-cache
Vedant-Gandhi Sep 26, 2024
a32336b
fix: add the default arguments after the options in wp_parse_args.
Vedant-Gandhi Sep 27, 2024
5d33fe7
feat: add development.md
Vedant-Gandhi Oct 1, 2024
1cee678
doc: add origin branch.
Vedant-Gandhi Oct 3, 2024
41aee75
Merge pull request #356 from rtCamp/feat/add-development-md
Vedant-Gandhi Oct 3, 2024
c6b53a6
Merge pull request #357 from rtCamp/feat/add-development-md
Vedant-Gandhi Oct 4, 2024
f253ae8
Merge pull request #355 from rtCamp/feat/preload-cache
Vedant-Gandhi Oct 7, 2024
51a85f4
feat: resolved conflicts.
Vedant-Gandhi Oct 10, 2024
9392d75
Merge branch 'develop' into feat/add-default-options
Vedant-Gandhi Oct 10, 2024
efd7da4
feat: add password toggle button.
Vedant-Gandhi Oct 16, 2024
cd58a27
refactor: fix indentation.
Vedant-Gandhi Oct 16, 2024
6048861
refactor: added sprintf instead of concatenating string when generati…
Vedant-Gandhi Oct 17, 2024
e1feb49
Merge branch 'develop' of https://github.com/rtCamp/nginx-helper into…
Vedant-Gandhi Oct 21, 2024
57a1f4f
refactor: change all indentation to tabs.
Vedant-Gandhi Oct 21, 2024
911e8c5
refactor: add alignment to equal signs.
Vedant-Gandhi Oct 21, 2024
989d1a0
refactor: fix arrow indentation in get_site_option while fetching set…
Vedant-Gandhi Oct 21, 2024
fbc7c4e
Merge pull request #362 from rtCamp/refactor/develop-branch
Vedant-Gandhi Oct 21, 2024
f0c88c9
Merge pull request #361 from rtCamp/develop
Vedant-Gandhi Oct 22, 2024
b34d004
Merge branch 'develop' into feat/add-amp-url-purge
Vedant-Gandhi Oct 22, 2024
127952f
Merge pull request #354 from rtCamp/feat/add-default-options
Vedant-Gandhi Oct 23, 2024
bd917e8
Merge pull request #363 from rtCamp/feat/add-default-options
Vedant-Gandhi Oct 24, 2024
104c57e
fix: move settings tab in admin to separate function and initialize i…
Vedant-Gandhi Nov 15, 2024
87e780d
refactor: add proper tab in function description.
Vedant-Gandhi Nov 15, 2024
d181862
Merge branch 'master' of https://github.com/rtCamp/nginx-helper into …
Vedant-Gandhi Nov 18, 2024
05ec1a7
Merge pull request #367 from rtCamp/sync/develop-master
Vedant-Gandhi Nov 18, 2024
aef2252
Merge branch 'master' of https://github.com/rtCamp/nginx-helper into …
Vedant-Gandhi Nov 18, 2024
273aa68
refactor: remove extra space.
Vedant-Gandhi Nov 18, 2024
687c116
refactor: remove extra space.
Vedant-Gandhi Nov 18, 2024
a742262
Merge pull request #365 from rtCamp/fix/add-setting-tab-on-init-hook
Vedant-Gandhi Nov 18, 2024
ce90897
Merge pull request #368 from rtCamp/fix/add-setting-tab-on-init-hook
Vedant-Gandhi Nov 20, 2024
13973c5
feat: add proper indentation.
Vedant-Gandhi Dec 12, 2024
e9424e3
feat: add proper indentation.
Vedant-Gandhi Dec 12, 2024
3671fc9
Merge branch 'feat/add-amp-url-purge' of https://github.com/rtCamp/ng…
Vedant-Gandhi Dec 12, 2024
4a9a801
feat: add proper indentation.
Vedant-Gandhi Dec 12, 2024
910b912
fix: bug causing the predis instance to crash if db was pre-selected.
Vedant-Gandhi Dec 12, 2024
02db177
Merge branch 'develop' into feat/add-cache-path-filter
Vedant-Gandhi Dec 12, 2024
9dea716
feat: add indentation for redis databse value.
Vedant-Gandhi Dec 12, 2024
51364b5
Merge pull request #352 from rtCamp/feat/add-cache-path-filter
Vedant-Gandhi Dec 18, 2024
2f2902c
Merge pull request #371 from rtCamp/feat/add-cache-path-filter
Vedant-Gandhi Dec 18, 2024
cbfc429
Merge branch 'develop' into feat/add-amp-url-purge
Vedant-Gandhi Dec 18, 2024
d60281e
Merge pull request #372 from rtCamp/feat/add-amp-url-purge
Vedant-Gandhi Dec 18, 2024
1aba7c9
doc: update the changelog for plugin.
Vedant-Gandhi Dec 18, 2024
d18f904
doc: update readme.txt to include changelog.
Vedant-Gandhi Dec 18, 2024
62065a7
feat: bump plugin version in meta.
Vedant-Gandhi Dec 18, 2024
533cc22
feat: bump the tested up to version.
Vedant-Gandhi Dec 18, 2024
e2509b4
feat: add updated po file.
Vedant-Gandhi Dec 19, 2024
8efbdce
feat: add mo file
Vedant-Gandhi Dec 19, 2024
a5f7dc1
feat: update the version in nginx helper.
Vedant-Gandhi Dec 19, 2024
9f0ac62
feat: update the stable tag.
Vedant-Gandhi Dec 19, 2024
5af7078
feat: updated tested upto in readme.txt
Vedant-Gandhi Dec 19, 2024
2f5b215
doc: add faq for redis constants.
Vedant-Gandhi Dec 20, 2024
3503b75
doc: remove extra space.
Vedant-Gandhi Dec 20, 2024
6946181
Merge pull request #373 from rtCamp/release/2.3.0
Vedant-Gandhi Dec 23, 2024
f9d43b9
fix: predis database crashes when the db is out of bounds.
Vedant-Gandhi Dec 23, 2024
3e41f75
fix: invalid empty unix socket path.
Vedant-Gandhi Dec 23, 2024
08db871
refactor: added yoda for database connection.
Vedant-Gandhi Dec 23, 2024
1dd31f2
refactor: remove extra lines.
Vedant-Gandhi Dec 23, 2024
de9b5e0
Merge pull request #377 from rtCamp/fix/redis-db-oob-crash
Vedant-Gandhi Dec 23, 2024
dea6c18
doc: remove the non existing contributor profile.
Vedant-Gandhi Dec 27, 2024
6eba2c1
doc: update the tags
Vedant-Gandhi Dec 27, 2024
42dc077
Merge pull request #380 from rtCamp/doc/update-contributors-and-tags
Vedant-Gandhi Dec 27, 2024
026028c
doc: update the readme files for plugin version.
Vedant-Gandhi Dec 30, 2024
0207385
doc: update the latest plugin version in stable tags.
Vedant-Gandhi Dec 30, 2024
350caca
doc: update plugin version in meta.
Vedant-Gandhi Dec 30, 2024
2838c2e
doc: update the po and mo files.
Vedant-Gandhi Dec 30, 2024
5425281
Merge pull request #383 from rtCamp/release/2.3.1
Vedant-Gandhi Dec 30, 2024
54d5af0
build: update the WORDPRESS_USERNAME and WORDPRESS_PASSWORD to SVN_US…
Vedant-Gandhi Dec 30, 2024
45bd870
Merge pull request #386 from rtCamp/build/update-gh-action
Vedant-Gandhi Dec 30, 2024
29f6fc6
build: replace the auth variables in github actions.
Vedant-Gandhi Dec 30, 2024
4c7e72c
Merge pull request #388 from rtCamp/build/replace-wp-action-credentia…
Vedant-Gandhi Dec 30, 2024
ec57362
update: update artifact version
rishavjeet Jan 13, 2025
7f00fd3
update: update the push trigger
rishavjeet Jan 13, 2025
7eb56dd
update: remove workflow trigger
rishavjeet Jan 15, 2025
1568327
Merge pull request #390 from rtCamp/update/artifact-version
juhi123 Jan 17, 2025
94432fc
resolve merge conflict
Jan 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
EXCLUDE_LIST: .gitattributes .gitignore .travis.yml README.md deploy.sh readme.sh
tests map.conf nginx.log wercker.yml vendor
SLUG: nginx-helper
WORDPRESS_PASSWORD: ${{ secrets.WORDPRESS_PASSWORD }}
WORDPRESS_USERNAME: ${{ secrets.WORDPRESS_USERNAME }}
WORDPRESS_PASSWORD: ${{ secrets.SVN_PASSWORD }}
WORDPRESS_USERNAME: ${{ secrets.SVN_USERNAME }}
18 changes: 9 additions & 9 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ name: End-to-End Tests
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches:
- develop
- master
# push:
# branches:
# - develop
# - master

pull_request:
branches:
- develop
- master
# pull_request:
# branches:
# - develop
# - master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:

- name: Archive HTML Report on failure
if: failure()
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: report
path: ./tests/e2e-playwright/config
Expand Down
440 changes: 42 additions & 398 deletions README.md

Large diffs are not rendered by default.

31 changes: 26 additions & 5 deletions admin/class-fastcgi-purger.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/**
* The admin-specific functionality of the plugin.
*
* @link https://rtcamp.com/nginx-helper/
* @since 2.0.0
* @link https://github.com/gridpane/nginx-helper/
* @since 9.9.10
*
* @package nginx-helper
* @subpackage nginx-helper/admin
Expand All @@ -14,7 +14,7 @@
*
* @package nginx-helper
* @subpackage nginx-helper/admin
* @author rtCamp
* @author GridPane
*/
class FastCGI_Purger extends Purger {

Expand All @@ -31,7 +31,7 @@ public function purge_url( $url, $feed = true ) {
/**
* Filters the URL to be purged.
*
* @since 2.1.0
* @since 9.9.10
*
* @param string $url URL to be purged.
*/
Expand Down Expand Up @@ -94,8 +94,29 @@ public function purge_url( $url, $feed = true ) {
break;

}

if( ( is_page() || is_single() ) && $nginx_helper_admin->options['purge_amp_urls'] ) {
$this->purge_amp_version( $url );
}

}

/**
* Purge AMP version of a URL.
*
* @param string $url_base The base URL to purge.
*/
private function purge_amp_version( $url_base ) {
$amp_url = sprintf( '%s/amp/', rtrim( $url_base, '/' ) );

$this->log( '- Purging AMP URL | ' . $amp_url );

if ( 'unlink_files' === $this->nginx_helper_admin->options['purge_method'] ) {
$this->delete_cache_file_for( $amp_url );
} else {
$this->do_remote_get( $amp_url );
}
}

/**
* Function to custom purge urls.
Expand Down Expand Up @@ -228,7 +249,7 @@ public function purge_all() {
/**
* Fire an action after the FastCGI cache has been purged.
*
* @since 2.1.0
* @since 9.9.10
*/
do_action( 'rt_nginx_helper_after_fastcgi_purge_all' );
}
Expand Down
Loading