Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloudfront_cache_path_invalidate
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
cloudfront_cache_path_invalidate
Commits
748ee9c4
Commit
748ee9c4
authored
1 year ago
by
Prashant Mishra
Browse files
Options
Downloads
Patches
Plain Diff
1. Issue
#3382425
by
jeetmail72: Entity shorting 2.Issue
#3319705
by gowthami reddy: readme.txt to readme.md
parent
e98a4271
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+48
-0
48 additions, 0 deletions
README.md
cloudfront_cache_path_invalidate.info.yml
+2
-2
2 additions, 2 deletions
cloudfront_cache_path_invalidate.info.yml
src/Form/AutoCloudfrontCacheSettingForm.php
+5
-2
5 additions, 2 deletions
src/Form/AutoCloudfrontCacheSettingForm.php
with
55 additions
and
4 deletions
README.
txt
→
README.
md
+
48
−
0
View file @
748ee9c4
Readme
================================================================================
# CloudFront Cache Path Invalidate
CONTENTS OF THIS FILE
---------------------
* Introduction
* Requirements
* Installation
* Configuration
INTRODUCTION
================================================================================
Cloudfront Cache Path Invalidate module, you can manage the cache clear of
Amazon Cloudfront through a setting form.
For a full description of the module, visit the
[
project page
](
https://www.drupal.org/project/cloudfront_cache_path_invalidate
)
.
Submit bug reports and feature suggestions, or track changes in the
[
issue queue
](
https://www.drupal.org/project/issues/cloudfront_cache_path_invalidate
)
.
## Table of contents
-
Requirements
-
Installation
-
Configuration
-
Maintainers
REQUIREMENTS
================================================================================
Drupal 8.x
CloudFront Setup
## Requirements
This module requires the following :
-
Drupal 10.x
-
CloudFront Setup
AWS Distribution ID
AWS Access Key
AWS Secret Key
AWS Region
INSTALLATION
================================================================================
admin/config/services/cloudfront-invalidate-url
## Installation
Install the CloudFront Cache Path Invalidate:
Download it from
[
CloudFront Cache Path Invalidate
](
https://www.drupal.org/project/cloudfront_cache_path_invalidate
)
and install it on your website.
-
With Composer
`$ composer require 'drupal/cloudfront_cache_path_invalidate'`
CONFIGURATION
================================================================================
## Configuration
This needs the following settings:
Please use below $settings with your AWS Credential in settings.php file
$settings['aws.distributionid'] = '';
$settings['aws.region'] = '';
$settings['aws.access_key'] = '';
$settings['aws.secret_key'] = '';
Alternatively, access_key and secret_key can be shared with s3fs:
$settings['s3fs.access_key'] = '';
$settings['s3fs.secret_key'] = '';
## Maintainers
-
Prashant Mishra -
[
PrashantMishra
](
https://www.drupal.org/u/prashant-mishra
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
cloudfront_cache_path_invalidate.info.yml
+
2
−
2
View file @
748ee9c4
name
:
'
Cloudfront
Cache
Path
Invalidate'
type
:
module
description
:
'
Cloudfront
Cache
Path
Invalidate'
core_version_requirement
:
^8 ||
^9 || ^10
package
:
'
Cloudfront
C
Cache
Path
Invalidate'
core_version_requirement
:
^9 || ^10
package
:
'
Cloudfront
Cache
Path
Invalidate'
configure
:
cloudfront_cache_path_invalidate.admin_cloudfront_invalidate_url
This diff is collapsed.
Click to expand it.
src/Form/AutoCloudfrontCacheSettingForm.php
+
5
−
2
View file @
748ee9c4
...
...
@@ -90,8 +90,9 @@ class AutoCloudfrontCacheSettingForm extends ConfigFormBase {
if
(
NULL
===
$entity_type
->
getBundleEntityType
())
{
$entity_options
[
$entity_type
->
id
()]
=
$entity_type
->
getBundleLabel
();
}
}
// Sort Entity type list by name.
asort
(
$entity_options
);
// When the AJAX request occurs, this form will be build in order to process
// form state before the AJAX callback is called. We can use this
...
...
@@ -137,6 +138,8 @@ class AutoCloudfrontCacheSettingForm extends ConfigFormBase {
$entity_bundle_options
[
$entity_bundle
->
id
()]
=
$entity_bundle
->
label
();
}
}
// Sort bundle list by name.
asort
(
$entity_bundle_options
);
$form
[
'ec_fieldset'
][
$i
][
'entity_bundle_container'
][
'ecentitytypebundle'
]
=
[
'#type'
=>
'select'
,
...
...
@@ -301,7 +304,7 @@ class AutoCloudfrontCacheSettingForm extends ConfigFormBase {
->
set
(
'ec_cloudfront_url'
,
$values_url
)
->
set
(
'ecgroupcount'
,
count
(
$values
))
->
save
();
$this
->
messenger
()
->
addStatus
(
'Cloudfront Cache Setting has been saved.'
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment